obeliss-nlesc / otree-waiting-room

Apache License 2.0
0 stars 0 forks source link

Get variables from oTree server #47

Open recap opened 8 months ago

recap commented 5 months ago

It is possible to decode the base64 variable encoding. In oTree the base64 is generated as follows

binascii.b2a_base64(pickle.dumps(dict(value))).decode('utf-8')

and loaded as pickle.loads(binascii.a2b_base64(value.encode('utf-8')))

from database.py