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

albertel lon-capa-cvs@mail.lon-capa.org
Sat, 24 Apr 2004 08:35:10 -0000


albertel		Sat Apr 24 04:35:10 2004 EDT

  Modified files:              
    /loncom/homework	grades.pm 
  Log:
  - yeah actually finds a real CODE now
  
  
Index: loncom/homework/grades.pm
diff -u loncom/homework/grades.pm:1.188 loncom/homework/grades.pm:1.189
--- loncom/homework/grades.pm:1.188	Sat Apr 24 04:31:57 2004
+++ loncom/homework/grades.pm	Sat Apr 24 04:35:10 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Grading handler
 #
-# $Id: grades.pm,v 1.188 2004/04/24 08:31:57 albertel Exp $
+# $Id: grades.pm,v 1.189 2004/04/24 08:35:10 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4208,7 +4208,7 @@
     my $cdom =$ENV{'course.'.$ENV{'request.course.id'}.'.domain'};
     my $cnum =$ENV{'course.'.$ENV{'request.course.id'}.'.num'};
     my %result=&Apache::lonnet::get('CODEs',[$old_name],$cdom,$cnum);
-    my %allcodes=map {($_,1)} split(',',$result{$old_name});
+    my %allcodes=map {(&Apache::lonprintout::num_to_letters($_),1)} split(',',$result{$old_name});
 
     my ($scanlines,$scan_data)=&scantron_getfile();
     for (my $i=0;$i<=$scanlines->{'count'};$i++) {