--- loncom/homework/grades.pm 2003/06/20 21:45:20 1.105 +++ loncom/homework/grades.pm 2003/06/24 15:45:17 1.108 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.105 2003/06/20 21:45:20 albertel Exp $ +# $Id: grades.pm,v 1.108 2003/06/24 15:45:17 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -136,7 +136,7 @@ sub getclasslist { } } $section = ($section ne '' ? $section : 'no'); - if (1 || &canview($section)) { + if (&canview($section)) { if ($getsec eq 'all' || $getsec eq $section) { $sections{$section}++; $fullnames{$_}=$fullname; @@ -1264,7 +1264,7 @@ KEYWORDS } 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 @@ -1847,7 +1847,7 @@ sub viewgrades { #beginning of class grading form $result.= '