You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by bb...@apache.org on 2022/08/10 21:59:28 UTC

[airflow] branch main updated: Remove useless statement in task_group_to_grid (#25654)

This is an automated email from the ASF dual-hosted git repository.

bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 84718f9233 Remove useless statement in task_group_to_grid (#25654)
84718f9233 is described below

commit 84718f92334b7e43607ab617ef31f3ffc4257635
Author: pierrejeambrun <pi...@gmail.com>
AuthorDate: Wed Aug 10 23:59:20 2022 +0200

    Remove useless statement in task_group_to_grid (#25654)
---
 airflow/www/views.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/airflow/www/views.py b/airflow/www/views.py
index 4e3a7b9e36..4e19292fce 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -321,13 +321,11 @@ def dag_to_grid(dag, dag_runs, session):
                             record['state'] = state
                             break
                     if None in record['mapped_states']:
-                        # When turnong the dict into JSON we can't have None as a key, so use the string that
-                        # the UI does
+                        # When turning the dict into JSON we can't have None as a key,
+                        # so use the string that the UI does.
                         record['mapped_states']['no_status'] = record['mapped_states'].pop(None)
 
                 for ti_summary in ti_summaries:
-                    if ti_summary.state is None:
-                        ti_summary.state == 'no_status'
                     if run_id != ti_summary.run_id:
                         run_id = ti_summary.run_id
                         if record: