fix old-style customresponses

This commit is contained in:
Arjun Singh
2012-09-13 23:16:47 -07:00
parent 47b1c809dd
commit a46b8e5f01

View File

@@ -971,8 +971,9 @@ def sympy_check2():
# build map giving "correct"ness of the answer(s)
correct_map = CorrectMap()
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],
npoints=self.maxpoints[idset[k]])
npoints=npoints)
return correct_map
def get_answers(self):