Coerce correctmap keys to strings, so that they are pickleable

This commit is contained in:
Calen Pennington
2013-03-12 09:32:19 -04:00
parent 2113541632
commit cfd7e6d214

View File

@@ -47,7 +47,7 @@ class CorrectMap(object):
queuestate=None, **kwargs):
if answer_id is not None:
self.cmap[answer_id] = {'correctness': correctness,
self.cmap[str(answer_id)] = {'correctness': correctness,
'npoints': npoints,
'msg': msg,
'hint': hint,