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

bowersj2 lon-capa-cvs@mail.lon-capa.org
Mon, 27 Feb 2006 02:25:47 -0000


bowersj2		Sun Feb 26 21:25:47 2006 EDT

  Modified files:              
    /loncom/interface/statistics	lonstudentassessment.pm 
  Log:
  Fix sequence performance to correctly compute scores with &compute_score.
  
  
Index: loncom/interface/statistics/lonstudentassessment.pm
diff -u loncom/interface/statistics/lonstudentassessment.pm:1.129 loncom/interface/statistics/lonstudentassessment.pm:1.130
--- loncom/interface/statistics/lonstudentassessment.pm:1.129	Sun Jan 29 14:39:03 2006
+++ loncom/interface/statistics/lonstudentassessment.pm	Sun Feb 26 21:25:44 2006
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonstudentassessment.pm,v 1.129 2006/01/29 19:39:03 bowersj2 Exp $
+# $Id: lonstudentassessment.pm,v 1.130 2006/02/27 02:25:44 bowersj2 Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -56,6 +56,7 @@
 use Apache::loncoursedata;
 use Apache::lonnet; # for logging porpoises
 use Apache::lonlocal;
+use Apache::grades;
 use Time::HiRes;
 use Spreadsheet::WriteExcel;
 use Spreadsheet::WriteExcel::Utility();
@@ -1942,7 +1943,7 @@
                 $hasdata = 1;
             }
             #
-            $partscore = $weight*$awarded;
+            $partscore = Apache::grades::compute_points($weight,$awarded);
             if (! defined($awarded)) {
                 $partscore = undef;
             }