[LON-CAPA-cvs] cvs: loncom(version_1_0_2) /homework inputtags.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 23 Sep 2003 15:44:39 -0000


albertel		Tue Sep 23 11:44:39 2003 EDT

  Modified files:              (Branch: version_1_0_2)
    /loncom/homework	inputtags.pm 
  Log:
   -backport 1.118
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.114.2.1 loncom/homework/inputtags.pm:1.114.2.2
--- loncom/homework/inputtags.pm:1.114.2.1	Mon Sep 22 21:52:57 2003
+++ loncom/homework/inputtags.pm	Tue Sep 23 11:44:39 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.114.2.1 2003/09/23 01:52:57 albertel Exp $
+# $Id: inputtags.pm,v 1.114.2.2 2003/09/23 15:44:39 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -517,6 +517,9 @@
     } 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' ) {
@@ -536,6 +539,7 @@
       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;
       }
     }