Commit 805d30ce by kimth

Merge pull request #687 from MITx/hotfix/arjun/fix_customresponse_points

fix old-style customresponses
parents 47b1c809 a46b8e5f
...@@ -971,8 +971,9 @@ def sympy_check2(): ...@@ -971,8 +971,9 @@ def sympy_check2():
# build map giving "correct"ness of the answer(s) # build map giving "correct"ness of the answer(s)
correct_map = CorrectMap() correct_map = CorrectMap()
for k in range(len(idset)): for k in range(len(idset)):
npoints = self.maxpoints[idset[k]] if correct[k] == 'correct' else 0
correct_map.set(idset[k], correct[k], msg=messages[k], correct_map.set(idset[k], correct[k], msg=messages[k],
npoints=self.maxpoints[idset[k]]) npoints=npoints)
return correct_map return correct_map
def get_answers(self): def get_answers(self):
......
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