fix session cache

This commit is contained in:
Alan Hamlett 2015-08-28 15:03:04 -07:00
parent f7fb23b07f
commit dcde89d33c

View file

@ -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()