From b11d57fa3b1f2bfbb75a97b7bc9fdd57b3c3f38e Mon Sep 17 00:00:00 2001 From: Valerij Maljulin Date: Thu, 16 Nov 2023 14:00:22 +0100 Subject: [PATCH] fixup! Add flask-session --- waiverdb/app.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/waiverdb/app.py b/waiverdb/app.py index 86931af0..bb0860f4 100644 --- a/waiverdb/app.py +++ b/waiverdb/app.py @@ -101,15 +101,14 @@ def create_app(config_obj=None) -> Flask: app.register_error_handler(requests.Timeout, json_error) populate_db_config(app) - if 'OIDC' in auth_methods(app): - oidc.init_app(app) - app.oidc = oidc # initialize logging init_logging(app) # initialize db db.init_app(app) - init_session(app) + if 'OIDC' in auth_methods(app): + oidc.init_app(app) + app.oidc = oidc # initialize db migrations migrations_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)),