Commit 063b87cb by kimth

Deep copy of CorrectMap was implied by code. Made it actually the case

parent 1aed0815
......@@ -186,12 +186,13 @@ class LoncapaProblem(object):
Returns an updated CorrectMap
'''
cmap = self.correct_map
cmap = CorrectMap()
cmap.update(self.correct_map)
for responder in self.responders.values():
if hasattr(responder,'update_score'): # TODO: Is this the best way to target 'update_score' of CodeResponse?
# Each LoncapaResponse will update the specific entries of 'cmap' that it's responsible for
cmap = responder.update_score(score_msg, cmap, queuekey)
self.correct_map = cmap
self.correct_map.set_dict(cmap.get_dict())
return cmap
def is_queued(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