diff --git a/clockwork_web/core/users_helper.py b/clockwork_web/core/users_helper.py index f847f299..303fdc1f 100644 --- a/clockwork_web/core/users_helper.py +++ b/clockwork_web/core/users_helper.py @@ -574,9 +574,9 @@ def render_template_with_user_settings(template_name_or_list, **context): The template rendered by Flask, and containing the web_settings of the current user """ - context["web_settings"] = ( - current_user.get_web_settings() - ) # used for templates (old way) + context[ + "web_settings" + ] = current_user.get_web_settings() # used for templates (old way) # used for the actual `web_settings` variable from "base.html" (prompted by GEN-160) context["web_settings_json_str"] = json.dumps(context["web_settings"]) diff --git a/slurm_state/helpers/parser_helper.py b/slurm_state/helpers/parser_helper.py index acd60a93..01928fb2 100644 --- a/slurm_state/helpers/parser_helper.py +++ b/slurm_state/helpers/parser_helper.py @@ -159,9 +159,9 @@ def get_tres_key(tres_type, tres_name): {"sacct_name": "requested", "cw_name": "tres_requested"}, ] for tres_subdict_name in tres_subdict_names: - res[tres_subdict_name["cw_name"]] = ( - {} - ) # Initialize the "tres_allocated" and the "tres_requested" subdicts + res[ + tres_subdict_name["cw_name"] + ] = {} # Initialize the "tres_allocated" and the "tres_requested" subdicts for tres_subdict in v[tres_subdict_name["sacct_name"]]: tres_key = get_tres_key( tres_subdict["type"], tres_subdict["name"] diff --git a/slurm_state/sacct_parser.py b/slurm_state/sacct_parser.py index e4e82f90..39f87ecb 100644 --- a/slurm_state/sacct_parser.py +++ b/slurm_state/sacct_parser.py @@ -158,9 +158,9 @@ def get_tres_key(tres_type, tres_name): {"sacct_name": "requested", "cw_name": "tres_requested"}, ] for tres_subdict_name in tres_subdict_names: - res[tres_subdict_name["cw_name"]] = ( - {} - ) # Initialize the "tres_allocated" and the "tres_requested" subdicts + res[ + tres_subdict_name["cw_name"] + ] = {} # Initialize the "tres_allocated" and the "tres_requested" subdicts for tres_subdict in v[tres_subdict_name["sacct_name"]]: tres_key = get_tres_key( tres_subdict["type"], tres_subdict["name"]