Commit b1e0c54e by Arjun Singh

Make customresponse respect point values on input fields

parent 532b8fbd
...@@ -970,7 +970,8 @@ def sympy_check2(): ...@@ -970,7 +970,8 @@ 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)):
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]])
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