Skip to content

Commit

Permalink
- Fix static check
Browse files Browse the repository at this point in the history
  • Loading branch information
maycuatroi committed Mar 20, 2024
1 parent d233436 commit cccfeb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 3 additions & 2 deletions airflow/www/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down
4 changes: 1 addition & 3 deletions airflow/www/static/js/dag.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cccfeb7

Please sign in to comment.