session_db: do not update write_date on get

The upstream FilesystemSessionStore does not do that.
pull/2441/head
Stéphane Bidoul 2022-10-29 15:38:03 +02:00
parent b68adf53a2
commit 42f7db536a
1 changed files with 0 additions and 6 deletions

View File

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