Coerce correctmap keys to strings, so that they are pickleable
This commit is contained in:
@@ -47,7 +47,7 @@ class CorrectMap(object):
|
|||||||
queuestate=None, **kwargs):
|
queuestate=None, **kwargs):
|
||||||
|
|
||||||
if answer_id is not None:
|
if answer_id is not None:
|
||||||
self.cmap[answer_id] = {'correctness': correctness,
|
self.cmap[str(answer_id)] = {'correctness': correctness,
|
||||||
'npoints': npoints,
|
'npoints': npoints,
|
||||||
'msg': msg,
|
'msg': msg,
|
||||||
'hint': hint,
|
'hint': hint,
|
||||||
|
|||||||
Reference in New Issue
Block a user