From cccfeb757ab1d6f8ac35a6730ae6cc1c7a9a2edc Mon Sep 17 00:00:00 2001 From: Binh Nguyen Date: Wed, 20 Mar 2024 09:28:15 +0700 Subject: [PATCH] - Fix static check --- airflow/www/app.py | 5 +++-- airflow/www/static/js/dag.js | 4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/airflow/www/app.py b/airflow/www/app.py index c1d56e57c6e77..17a4c681ddd3c 100644 --- a/airflow/www/app.py +++ b/airflow/www/app.py @@ -86,8 +86,9 @@ def create_app(config=None, testing=False): flask_app.config["SQLALCHEMY_DATABASE_URI"] = conf.get("database", "SQL_ALCHEMY_CONN") instance_name = conf.get(section="webserver", key="instance_name", fallback="Airflow") - require_confirmation_dag_change = conf.getboolean(section="webserver", - key="require_confirmation_dag_change", fallback=False) + require_confirmation_dag_change = conf.getboolean( + section="webserver", key="require_confirmation_dag_change", fallback=False + ) instance_name_has_markup = conf.getboolean( section="webserver", key="instance_name_has_markup", fallback=False ) diff --git a/airflow/www/static/js/dag.js b/airflow/www/static/js/dag.js index ae3762022528d..8923f1ffafaa9 100644 --- a/airflow/www/static/js/dag.js +++ b/airflow/www/static/js/dag.js @@ -119,9 +119,7 @@ $("#pause_resume").on("change", function onChange() { const requireConfirmation = $input.data("require-confirmation"); if (requireConfirmation) { const confirmation = window.confirm( - `Are you sure you want to ${ - isPaused ? "resume" : "pause" - } this DAG?` + `Are you sure you want to ${isPaused ? "resume" : "pause"} this DAG?` ); if (!confirmation) { $input.prop("checked", !isPaused);