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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 20 Dec 2005 18:54:55 -0000


albertel		Tue Dec 20 13:54:55 2005 EDT

  Modified files:              
    /loncom/interface	lonpickcode.pm 
  Log:
  - pickcode was always chcing line one and not looking at the rest of the exams BG#4506
  
  
Index: loncom/interface/lonpickcode.pm
diff -u loncom/interface/lonpickcode.pm:1.7 loncom/interface/lonpickcode.pm:1.8
--- loncom/interface/lonpickcode.pm:1.7	Fri Aug 12 18:14:12 2005
+++ loncom/interface/lonpickcode.pm	Tue Dec 20 13:54:54 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Pick a CODE from the list of possible CODEs
 #
-# $Id: lonpickcode.pm,v 1.7 2005/08/12 22:14:12 albertel Exp $
+# $Id: lonpickcode.pm,v 1.8 2005/12/20 18:54:54 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -43,7 +43,7 @@
     $r->rflush();
     my ($scanlines,$scan_data)=&Apache::grades::scantron_getfile();
     for (my $i=0;$i<=$scanlines->{'count'};$i++) {
-	my $line=&Apache::grades::scantron_get_line($scanlines,$i);
+	my $line=&Apache::grades::scantron_get_line($scanlines,$scan_data,$i);
 	if ($line=~/^[\s\cz]*$/) { next; }
 	my $scan_record=
 	    &Apache::grades::scantron_parse_scanline($line,$i,