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

www www@source.lon-capa.org
Mon, 07 Mar 2011 21:37:59 -0000


www		Mon Mar  7 21:37:59 2011 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  Small progress toward lenient grading: data is now stored, but still no
  tries count
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.282 loncom/homework/inputtags.pm:1.283
--- loncom/homework/inputtags.pm:1.282	Mon Mar  7 19:42:21 2011
+++ loncom/homework/inputtags.pm	Mon Mar  7 21:37:59 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.282 2011/03/07 19:42:21 www Exp $
+# $Id: inputtags.pm,v 1.283 2011/03/07 21:37:59 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1269,8 +1269,7 @@
 		$Apache::lonhomework::results{"resource.$id.previous"} = '0';
 	    }
 	}
-    } elsif ( $Apache::lonhomework::history{"resource.$id.solved"} =~
-	      /^correct/ ) {
+    } elsif ( $Apache::lonhomework::history{"resource.$id.awarded"} == 1 ) {
 	#delete all data as they student already has it correct
 	&removealldata($id);
 	#and since they didn't do anything we were never here