Fix weighting and score generation

This commit is contained in:
Vik Paruchuri
2013-04-08 16:52:18 -04:00
parent e981226d8d
commit 7d09617ec9

View File

@@ -199,8 +199,8 @@ class PeerGradingModule(PeerGradingFields, XModule):
self.student_data_for_location = response
score_dict = {
'score': int(count_graded >= count_required),
'total': self.max_grade,
'score': int(count_graded >= count_required and count_graded>0) * int(self.weight),
'total': self.max_grade * int(self.weight),
}
return score_dict