[LON-CAPA-cvs] cvs: loncom /interface loncoursedata.pm

stredwic lon-capa-cvs@mail.lon-capa.org
Thu, 29 Aug 2002 03:04:10 -0000


stredwic		Wed Aug 28 23:04:10 2002 EDT

  Modified files:              
    /loncom/interface	loncoursedata.pm 
  Log:
  Now, when the refresh button is pressed or you switch to a report, the
  student's information datestamp will be check.  It will be downloaded if
  the datestamp is newer than the stored datestamp.  There may still be
  issues with problem statistics due to the fact that there isn't a way
  to signal the update of the statistical cached data.
  
  
Index: loncom/interface/loncoursedata.pm
diff -u loncom/interface/loncoursedata.pm:1.24 loncom/interface/loncoursedata.pm:1.25
--- loncom/interface/loncoursedata.pm:1.24	Wed Aug 28 18:42:15 2002
+++ loncom/interface/loncoursedata.pm	Wed Aug 28 23:04:10 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # (Publication Handler
 #
-# $Id: loncoursedata.pm,v 1.24 2002/08/28 22:42:15 stredwic Exp $
+# $Id: loncoursedata.pm,v 1.25 2002/08/29 03:04:10 stredwic Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1130,9 +1130,9 @@
 
         if($c->aborted()) { return 'Aborted'; }
 
-        if($downloadTime ne 'Not downloaded') {
-	    next;
-	}
+        #if($downloadTime ne 'Not downloaded') {
+	#    next;
+	#}
 	my $courseData = 
 	    &DownloadCourseInformation($_, $courseID, $downloadTime, 
 				       $WhatIWant);
@@ -1202,7 +1202,7 @@
             return 'Aborted';
         }
 
-        if($downloadTime eq 'Not downloaded') {
+        #if($downloadTime eq 'Not downloaded') {
             my $error = 0;
             my $courseData = 
                 &DownloadCourseInformation($_, $courseID, $downloadTime,
@@ -1226,7 +1226,7 @@
                 $downloadData{$_.':error'} = 'No course data for '.$_;
             }
             untie(%downloadData);
-        }
+        #}
     }
     if($status eq 'true') { &Apache::lonhtmlcommon::Close_PrgWin($r); }