fixes to schematicresponse to work with new CorrectMap

This commit is contained in:
ichuang
2012-06-10 20:52:10 -04:00
parent 989a74ba3f
commit 2af525f19c

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