fixes to schematicresponse to work with new CorrectMap

This commit is contained in:
ichuang
2012-06-10 20:52:10 -04:00
committed by Matthew Mongeau
parent cd5a4314e2
commit c5d0610da7

View File

@@ -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