--- loncom/homework/grades.pm 2003/11/25 21:54:58 1.163 +++ loncom/homework/grades.pm 2003/12/02 02:52:10 1.164 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.163 2003/11/25 21:54:58 www Exp $ +# $Id: grades.pm,v 1.164 2003/12/02 02:52:10 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -678,10 +678,11 @@ LISTJAVASCRIPT if ($ENV{'form.showgrading'} eq 'yes' && $submitonly ne 'all') { (%status) =&student_gradeStatus($url,$symb,$udom,$uname,$partlist); my $submitted = 0; - my $graded = 1; + my $graded = 0; foreach (keys(%status)) { $submitted = 1 if ($status{$_} ne 'nothing'); - $graded = 0 if ($status{$_} =~ /^correct/); + $graded = 1 if ($status{$_} !~ /^correct/); + my ($foo,$partid,$foo1) = split(/\./,$_); if ($status{'resource.'.$partid.'.submitted_by'} ne '') { $submitted = 0;