--- loncom/homework/grades.pm 2006/02/26 02:55:11 1.318
+++ loncom/homework/grades.pm 2006/02/27 02:06:52 1.319
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.318 2006/02/26 02:55:11 banghart Exp $
+# $Id: grades.pm,v 1.319 2006/02/27 02:06:52 bowersj2 Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1421,7 +1421,7 @@ sub gradeBox {
'problem weight assigned by computer');
$wgt = ($wgt > 0 ? $wgt : '1');
my $score = ($$record{'resource.'.$partid.'.awarded'} eq '' ?
- '' : $$record{'resource.'.$partid.'.awarded'}*$wgt);
+ '' : compute_points($$record{'resource.'.$partid.'.awarded'},$wgt));
my $result=''."\n";
$result.='
'.$partid.' - '.$respid.'
';
my $display_part=&get_display_part($partid,undef,$symb);
@@ -2893,7 +2893,7 @@ sub viewstudentgrade {
$aggregates{$part} = 1;
}
if ($type eq 'awarded') {
- my $pts = $score eq '' ? '' : $score*$$weight{$part};
+ my $pts = $score eq '' ? '' : compute_points($score,$$weight{$part});
$result.=''."\n";
$result.='