You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2021/02/04 11:10:04 UTC
[airflow] branch v1-10-test updated: Make rbac_app's db.session use
the same timezone with @provide_session (#14025)
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 <zl...@gmail.com>
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()