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

raeburn raeburn at source.lon-capa.org
Tue Mar 13 12:48:18 EDT 2018


raeburn		Tue Mar 13 16:48:18 2018 EDT

  Modified files:              
    /loncom/interface	loncoursedata.pm 
  Log:
  - Bug 6601
  
  
Index: loncom/interface/loncoursedata.pm
diff -u loncom/interface/loncoursedata.pm:1.203 loncom/interface/loncoursedata.pm:1.204
--- loncom/interface/loncoursedata.pm:1.203	Sun Mar 11 12:44:22 2018
+++ loncom/interface/loncoursedata.pm	Tue Mar 13 16:48:18 2018
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: loncoursedata.pm,v 1.203 2018/03/11 12:44:22 raeburn Exp $
+# $Id: loncoursedata.pm,v 1.204 2018/03/13 16:48:18 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1677,22 +1677,13 @@
     #
     $request = 'SELECT MAX(tries),MIN(tries) FROM '.$stats_table.
         ' WHERE awarded>0';
-    if (defined($time_requirements)) {
-        $request .= ' AND '.$time_requirements;
-    }
     my ($max,$min) = &execute_SQL_request($dbh,$request);
     #
     $request = 'SELECT SUM(awarded) FROM '.$stats_table;
-    if (defined($time_requirements)) {
-        $request .= ' AND '.$time_requirements;
-    }
     my ($Solved) = &execute_SQL_request($dbh,$request);
     #
     $request = 'SELECT SUM(awarded) FROM '.$stats_table.
         " WHERE solved='correct_by_override'";
-    if (defined($time_requirements)) {
-        $request .= ' AND '.$time_requirements;
-    }
     my ($solved) = &execute_SQL_request($dbh,$request);
     #
     $Solved -= $solved;




More information about the LON-CAPA-cvs mailing list