Skip to content

Commit

Permalink
Black reformatting with version 22.3.0 of black
Browse files Browse the repository at this point in the history
  • Loading branch information
soline-b committed Nov 1, 2024
1 parent faab50b commit 4d32e5a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions clockwork_web/core/users_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand Down
6 changes: 3 additions & 3 deletions slurm_state/helpers/parser_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
6 changes: 3 additions & 3 deletions slurm_state/sacct_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 4d32e5a

Please sign in to comment.