diff --git a/session_db/pg_session_store.py b/session_db/pg_session_store.py index 05a46514b..951b67a22 100644 --- a/session_db/pg_session_store.py +++ b/session_db/pg_session_store.py @@ -106,7 +106,8 @@ class PGSessionStore(sessions.SessionStore): def vacuum(self): self._cr.execute( "DELETE FROM http_sessions " - "WHERE now() at time zone 'UTC' - write_date > '7 days'" + "WHERE now() at time zone 'UTC' - write_date > %s", + (f"{http.SESSION_LIFETIME} seconds",), )