--- loncom/homework/inputtags.pm 2003/09/22 20:49:01 1.117 +++ loncom/homework/inputtags.pm 2003/09/23 15:43:39 1.118 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.117 2003/09/22 20:49:01 albertel Exp $ +# $Id: inputtags.pm,v 1.118 2003/09/23 15:43:39 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -518,6 +518,9 @@ sub setgradedata { } elsif ( $award eq 'INCORRECT' ) { $Apache::lonhomework::results{"resource.$id.tries"} = $Apache::lonhomework::history{"resource.$id.tries"} + 1; + if (lc($Apache::lonhomework::problemstatus) ne 'no') { + $Apache::lonhomework::results{"resource.$id.awarded"} = 0; + } $Apache::lonhomework::results{"resource.$id.solved"} = 'incorrect_attempted' } elsif ( $award eq 'SUBMITTED' ) { @@ -537,6 +540,7 @@ sub setgradedata { if (lc($Apache::lonhomework::problemstatus) eq 'no') { $Apache::lonhomework::results{"resource.$id.tries"} = $Apache::lonhomework::history{"resource.$id.tries"} + 1; + $Apache::lonhomework::results{"resource.$id.awarded"} = 0; } }