Skip to content

Commit

Permalink
fixup! Add flask-session
Browse files Browse the repository at this point in the history
  • Loading branch information
mvalik committed Nov 16, 2023
1 parent ca1c3fb commit b11d57f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions waiverdb/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)),
Expand Down

0 comments on commit b11d57f

Please sign in to comment.