fix session cache
This commit is contained in:
parent
f7fb23b07f
commit
dcde89d33c
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class SessionCache(object):
|
|||
conn, c = self.connect()
|
||||
c.execute('DELETE FROM session')
|
||||
values = {
|
||||
'value': pickle.dumps(session, protocol=2),
|
||||
'value': sqlite3.Binary(pickle.dumps(session, protocol=2)),
|
||||
}
|
||||
c.execute('INSERT INTO session VALUES (:value)', values)
|
||||
conn.commit()
|
||||
|
|
Loading…
Reference in a new issue