Commit c5d0610d by ichuang Committed by Matthew Mongeau

fixes to schematicresponse to work with new CorrectMap

parent cd5a4314
......@@ -960,7 +960,8 @@ class SchematicResponse(LoncapaResponse):
self.context.update({'submission':submission})
exec self.code in global_context, self.context
cmap = CorrectMap()
return cmap.set_dict(zip(sorted(self.answer_ids), self.context['correct']))
cmap.set_dict(dict(zip(sorted(self.answer_ids), self.context['correct'])))
return cmap
def get_answers(self):
# use answers provided in input elements
......
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