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

raeburn raeburn at source.lon-capa.org
Thu Feb 9 14:27:18 EST 2023


raeburn		Thu Feb  9 19:27:18 2023 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - Only need determine timestamp once per version.
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.790 loncom/homework/grades.pm:1.791
--- loncom/homework/grades.pm:1.790	Sat Jun 11 14:38:28 2022
+++ loncom/homework/grades.pm	Thu Feb  9 19:27:18 2023
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.790 2022/06/11 14:38:28 raeburn Exp $
+# $Id: grades.pm,v 1.791 2023/02/09 19:27:18 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2911,9 +2911,9 @@
 	    foreach my $key (sort(split(/\:/,
 					$$returnhash{$version.':keys'}))) {
 		$lasthash{$key}=$$returnhash{$version.':'.$key};
-		$timestamp = 
-		    &Apache::lonlocal::locallocaltime($$returnhash{$version.':timestamp'});
 	    }
+            $timestamp =
+                &Apache::lonlocal::locallocaltime($$returnhash{$version.':timestamp'});
 	}
         my (%typeparts,%randombytry);
         my $showsurv = 




More information about the LON-CAPA-cvs mailing list