This is an automated email from the ASF dual-hosted git repository.
ash pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v1-10-test by this push:
new 030e715 Make rbac_app's db.session use the same timezone with
@provide_session (#14025)
030e715 is described below
commit 030e715bf198374b1898b5495cb3f529aed45066
Author: zlhsmfj <[email protected]>
AuthorDate: Thu Feb 4 19:09:51 2021 +0800
Make rbac_app's db.session use the same timezone with @provide_session
(#14025)
---
airflow/www_rbac/app.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/airflow/www_rbac/app.py b/airflow/www_rbac/app.py
index 49ffaf6..18a355a 100644
--- a/airflow/www_rbac/app.py
+++ b/airflow/www_rbac/app.py
@@ -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()