Commit c9f75f8b by Vik Paruchuri

Add in score return

parent af6123a1
...@@ -169,8 +169,18 @@ class PeerGradingModule(XModule): ...@@ -169,8 +169,18 @@ class PeerGradingModule(XModule):
self.system.location, self.system.anonymous_student_id self.system.location, self.system.anonymous_student_id
)) ))
return None return None
count_graded = response['count_graded']
count_required = response['count_required']
if count_required>0 and count_graded>=count_required:
self.student_data_for_location = response
score_dict = {
'score': int(count_graded>=count_required),
'total': self.max_score,
}
return score_dict
def max_score(self): def max_score(self):
''' Maximum score. Two notes: ''' Maximum score. Two notes:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment