Skip to content

Commit

Permalink
Make rbac_app's db.session use the same timezone with @provide_session (
Browse files Browse the repository at this point in the history
  • Loading branch information
zlhsmfj authored and kaxil committed Mar 9, 2021
1 parent 7e7657b commit 740ec71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/www_rbac/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ def create_app(config=None, session=None, testing=False, app_name="Airflow"):
csrf.init_app(app)

db = SQLA(app)
from airflow.utils.sqlalchemy import setup_event_handlers
setup_event_handlers(db.session.get_bind())

from airflow import api
api.load_auth()
Expand Down

0 comments on commit 740ec71

Please sign in to comment.