Skip to content

Commit e521915

Browse files
committed
Merge pull request isso-comments#172 from xuhdev/fix-159-2
Save the session-key as a unicode string in the db
2 parents 957fc72 + 21e91ef commit e521915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

isso/db/preferences.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Preferences:
88

99
defaults = [
10-
("session-key", binascii.b2a_hex(os.urandom(24))),
10+
("session-key", binascii.b2a_hex(os.urandom(24)).decode('utf-8')),
1111
]
1212

1313
def __init__(self, db):

0 commit comments

Comments
 (0)