Merge pull request #172 from xuhdev/fix-159-2

Save the session-key as a unicode string in the db
This commit is contained in:
Martin Zimmermann 2015-02-25 10:11:34 +01:00
commit e5219157a7

View File

@ -7,7 +7,7 @@ import binascii
class Preferences: class Preferences:
defaults = [ defaults = [
("session-key", binascii.b2a_hex(os.urandom(24))), ("session-key", binascii.b2a_hex(os.urandom(24)).decode('utf-8')),
] ]
def __init__(self, db): def __init__(self, db):