Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 17, 2024
1 parent de61bec commit 5903e0b
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions app/blueprints/assessments/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def assessor_type(fund_short_name: str, round_short_name: str):
if not (selected_assessments := request.form.getlist("selected_assessments")):
abort(500, "Required selected_assessments field to be populated")

from_form=request.form.get("from_form")
from_form = request.form.get("from_form")

selected_assessor_role = (
request.form.getlist("assessor_role")[0]
Expand Down Expand Up @@ -592,7 +592,7 @@ def assessor_type_list(fund_short_name: str, round_short_name: str):
if not (selected_assessments := request.form.getlist("selected_assessments")):
abort(500, "Required selected_assessments field to be populated")

from_form=request.form.get("from_form")
from_form = request.form.get("from_form")

if not (assessor_role := request.form.getlist("assessor_role")):
abort(500, "Required assessor_role field to be populated")
Expand Down Expand Up @@ -1114,18 +1114,21 @@ def assignment_overview(fund_short_name: str, round_short_name: str):
f"Could not create assignment for user {user_id} and application {application_id}"
)

if from_form == 'True':
return redirect(url_for(
"assessment_bp.application",
application_id=application_id,
))
if from_form == "True":
return redirect(
url_for(
"assessment_bp.application",
application_id=application_id,
)
)
else:
return redirect(url_for(
"assessment_bp.fund_dashboard",
fund_short_name=fund_short_name,
round_short_name=round_short_name,
))

return redirect(
url_for(
"assessment_bp.fund_dashboard",
fund_short_name=fund_short_name,
round_short_name=round_short_name,
)
)

thread_executor.executor.shutdown()

Expand Down Expand Up @@ -1688,8 +1691,8 @@ def application(application_id):
[existing_assignments[-1]["assigner_id"]],
state.fund_short_name,
)
assigner_name=(next(iter(assigner_account.values()))["full_name"])
assignment_date=existing_assignments[-1]["created_at"]
assigner_name = next(iter(assigner_account.values()))["full_name"]
assignment_date = existing_assignments[-1]["created_at"]

return render_template(
"assessor_tasklist.html",
Expand Down

0 comments on commit 5903e0b

Please sign in to comment.