Taragolis commented on code in PR #38192:
URL: https://github.com/apache/airflow/pull/38192#discussion_r1527149049
##########
airflow/www/decorators.py:
##########
@@ -106,6 +107,8 @@ def wrapper(*args, **kwargs):
extra_fields = _mask_connection_fields(extra_fields)
params = {**request.values, **request.view_args}
+ dag_id = params.get("dag_id") if params.get("dag_id") else
session.scalar(select(DagRun.dag_id)
+ .where(DagRun.id ==
params.get("pk")))
Review Comment:
```suggestion
dag_id = params.get("dag_id") or session.scalar(
select(DagRun.dag_id).where(DagRun.id ==
params.get("pk"))
)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]