From 42f7db536a9b824f531fa1807476f50cf1807860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sat, 29 Oct 2022 15:38:03 +0200 Subject: [PATCH] session_db: do not update write_date on get The upstream FilesystemSessionStore does not do that. --- session_db/pg_session_store.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/session_db/pg_session_store.py b/session_db/pg_session_store.py index 951b67a22..3feae5f2b 100644 --- a/session_db/pg_session_store.py +++ b/session_db/pg_session_store.py @@ -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])