--- loncom/interface/loncoursedata.pm 2005/02/28 20:00:23 1.142 +++ loncom/interface/loncoursedata.pm 2005/03/01 00:07:20 1.143 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: loncoursedata.pm,v 1.142 2005/02/28 20:00:23 matthew Exp $ +# $Id: loncoursedata.pm,v 1.143 2005/03/01 00:07:20 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2218,7 +2218,7 @@ Returns: the sum of the score on the pro ######################################################## ######################################################## sub get_sum_of_scores { - my ($resource,$part,$students,$courseid,$starttime,$endtime) = @_; + my ($symb,$part,$students,$courseid,$starttime,$endtime) = @_; if (! defined($courseid)) { $courseid = $ENV{'request.course.id'}; } @@ -2237,7 +2237,7 @@ sub get_sum_of_scores { my $request = 'SELECT SUM(a.awarded*w.weight),SUM(w.weight) FROM '. $performance_table.' AS a '. 'NATURAL LEFT JOIN '.$weight_table.' AS w '; - $request .= 'WHERE a.symb_id='.&get_symb_id($resource->{'symb'}). + $request .= 'WHERE a.symb_id='.&get_symb_id($symb). ' AND a.part_id='.&get_part_id($part); if (defined($time_limits)) { $request .= ' AND '.$time_limits;