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

matthew lon-capa-cvs@mail.lon-capa.org
Wed, 23 Feb 2005 01:21:46 -0000


matthew		Tue Feb 22 20:21:46 2005 EDT

  Modified files:              
    /loncom/interface/statistics	lonstudentsubmissions.pm 
  Log:
  Fixed bug with excel output where an extra blank row was output for each
  student.
  
  
Index: loncom/interface/statistics/lonstudentsubmissions.pm
diff -u loncom/interface/statistics/lonstudentsubmissions.pm:1.33 loncom/interface/statistics/lonstudentsubmissions.pm:1.34
--- loncom/interface/statistics/lonstudentsubmissions.pm:1.33	Wed Feb  2 19:25:01 2005
+++ loncom/interface/statistics/lonstudentsubmissions.pm	Tue Feb 22 20:21:46 2005
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstudentsubmissions.pm,v 1.33 2005/02/03 00:25:01 matthew Exp $
+# $Id: lonstudentsubmissions.pm,v 1.34 2005/02/23 01:21:46 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -756,14 +756,13 @@
             }
         }
         # Fill in the remaining rows with the students data
-        for (my $row = $student_row+1;$row<=$max_row;$row++) {
+        for (my $row = $student_row+1;$row<$max_row;$row++) {
             my $cols = 0;
             foreach my $field (@StudentColumns) {
                 $worksheet->write($row,$cols++,
                                   $student->{$field});
             }
         }
-        $rows_output++;
         &Apache::lonhtmlcommon::Increment_PrgWin($r,\%prog_state,
                                                  'last student');
     }