Commit 72265d7f by Vik Paruchuri

changed points in progress tab to being completion based, not correctness based

parent 0319dc94
...@@ -302,10 +302,14 @@ class SelfAssessmentModule(XModule): ...@@ -302,10 +302,14 @@ class SelfAssessmentModule(XModule):
""" """
Get the current correctness, points, and done status Get the current correctness, points, and done status
""" """
#Assign points based on correctness #Assign points based on completion
points = 0 points = 1
if self.correctness == "correct": #This is a pointless if structure, but left in place in case points change from
points = 1 #being completion based to correctness based
if type(self.correctness)==type([]):
if(len(self.correctness)>0):
if self.correctness[len(self.correctness)-1]== "correct":
points = 1
state = {'seed': 1, state = {'seed': 1,
'student_answers': self.answer, 'student_answers': self.answer,
......
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