From 03b0e337232a3d572043a67c0eaa6663e7674675 Mon Sep 17 00:00:00 2001 From: Bjoern Runden Date: Tue, 4 Aug 2026 13:49:17 +0200 Subject: [PATCH] fix: Database operational error for sessions - Switched back `SESSION_SQLALCHEMY_TABLE` and `SESSION_CLEANUP_N_REQUESTS` configuration - `flask_session` extension is now generating the `sessions` table without issues - Database permission issue resolved by clearing corrupt database volumes and running `flask db init`/`upgrade` manually Re-initialized test environment via setup commands. --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index 875a51d..d25fcf5 100644 --- a/app.py +++ b/app.py @@ -138,6 +138,8 @@ def initialize_extensions(app: Flask) -> None: # Session app.config['SESSION_TYPE'] = 'sqlalchemy' app.config['SESSION_SQLALCHEMY'] = db + app.config['SESSION_SQLALCHEMY_TABLE'] = 'sessions' + app.config['SESSION_CLEANUP_N_REQUESTS'] = None Session(app) # Ensure secret key is set