Skip to content
Snippets Groups Projects
Commit 338a5776 authored by Vik Paruchuri's avatar Vik Paruchuri
Browse files

Remove try except block for pg scoring

parent b1ea6b20
No related branches found
No related tags found
No related merge requests found
......@@ -205,13 +205,11 @@ class PeerGradingModule(PeerGradingFields, XModule):
#Ensures that once a student receives a final score for peer grading, that it does not change.
self.student_data_for_location = response
try:
if self.weight is not None:
score = int(count_graded >= count_required and count_graded > 0) * float(self.weight)
total = self.max_grade * float(self.weight)
score_dict['score'] = score
score_dict['total'] = total
except:
pass
return score_dict
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment