[LON-CAPA-cvs] cvs: loncom /homework grades.pm

albertel lon-capa-cvs@mail.lon-capa.org
Mon, 23 Jun 2003 21:14:55 -0000


albertel		Mon Jun 23 17:14:55 2003 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - part ids are more than numbers (BUG#1773)
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.106 loncom/homework/grades.pm:1.107
--- loncom/homework/grades.pm:1.106	Fri Jun 20 20:39:46 2003
+++ loncom/homework/grades.pm	Mon Jun 23 17:14:55 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.106 2003/06/21 00:39:46 albertel Exp $
+# $Id: grades.pm,v 1.107 2003/06/23 21:14:55 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1264,7 +1264,7 @@
 	    } else {
 		for my $part (sort keys(%$handgrade)) {
 		    foreach (@$string) {
-			my ($partid,$respid) = /^resource\.(\d+)\.(\d+)\.submission/;
+			my ($partid,$respid) = /^resource\.(\w+)\.(\w+)\.submission/;
 			if ($part eq ($partid.'_'.$respid)) {
 			    my ($ressub,$subval) = split(/:/,$_,2);
 # Similarity check