Skip to content

Commit

Permalink
pass session to
Browse files Browse the repository at this point in the history
  • Loading branch information
RNHTTR committed Nov 9, 2023
1 parent ba19765 commit ec52276
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions airflow/api_connexion/endpoints/dag_endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def get_dag(*, dag_id: str, session: Session = NEW_SESSION) -> APIResponse:


@security.requires_access_dag("GET")
@provide_session
def get_dag_details(*, dag_id: str, session: Session = NEW_SESSION) -> APIResponse:
"""Get details of DAG."""
dag: DAG = get_airflow_app().dag_bag.get_dag(dag_id)
Expand Down

0 comments on commit ec52276

Please # to comment.