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

www www@source.lon-capa.org
Mon, 07 Mar 2011 22:11:50 -0000


www		Mon Mar  7 22:11:50 2011 EDT

  Modified files:              
    /loncom/homework	inputtags.pm 
  Log:
  Now grading correctly, still needs to show tries to students
  
  
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.283 loncom/homework/inputtags.pm:1.284
--- loncom/homework/inputtags.pm:1.283	Mon Mar  7 21:37:59 2011
+++ loncom/homework/inputtags.pm	Mon Mar  7 22:11:50 2011
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # input  definitons
 #
-# $Id: inputtags.pm,v 1.283 2011/03/07 21:37:59 www Exp $
+# $Id: inputtags.pm,v 1.284 2011/03/07 22:11:50 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1094,7 +1094,6 @@
        }
        $message.=&mt('Submissions to practice problems are not permanently recorded.');
     }
-
     return ($button,$css_class,$message,$previousmsg);
 }
 
@@ -1147,8 +1146,7 @@
 	$Apache::inputtags::status['-1'] ne 'CANNOT_ANSWER') {
 	$Apache::lonhomework::results{"resource.$id.afterduedate"}=$award;
 	return '';
-    } elsif ( $Apache::lonhomework::history{"resource.$id.solved"} !~
-	      /^correct/ 
+    } elsif ( $Apache::lonhomework::history{"resource.$id.awarded"} < 1
 	      || $Apache::lonhomework::scantronmode 
 	      || &Apache::lonhomework::hide_problem_status()  ) {
         # the student doesn't already have it correct,