session_db: do not update write_date on get
The upstream FilesystemSessionStore does not do that.pull/2441/head
parent
b68adf53a2
commit
42f7db536a
|
@ -84,12 +84,6 @@ class PGSessionStore(sessions.SessionStore):
|
|||
|
||||
@with_cursor
|
||||
def get(self, sid):
|
||||
self._cr.execute(
|
||||
"UPDATE http_sessions "
|
||||
"SET write_date = now() at time zone 'UTC' "
|
||||
"WHERE sid=%s",
|
||||
[sid],
|
||||
)
|
||||
self._cr.execute("SELECT payload FROM http_sessions WHERE sid=%s", (sid,))
|
||||
try:
|
||||
data = json.loads(self._cr.fetchone()[0])
|
||||
|
|
Loading…
Reference in New Issue