Skip to content

Commit

Permalink
WebHost: hopefully make CodeQL happy with MAX_ROLL redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed Oct 5, 2024
1 parent 93032e7 commit 4b23d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebHostLib/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def start_generation(options: Dict[str, Union[dict, str]], meta: Dict[str, Any])
elif len(gen_options) > app.config["MAX_ROLL"]:
flash(f"Sorry, generating of multiworlds is limited to {app.config['MAX_ROLL']} players. "
f"If you have a larger group, please generate it yourself and upload it.")
return redirect(request.url)
return redirect(url_for(request.endpoint, **(request.view_args or {})))
elif len(gen_options) >= app.config["JOB_THRESHOLD"]:
gen = Generation(
options=pickle.dumps({name: vars(options) for name, options in gen_options.items()}),
Expand Down

0 comments on commit 4b23d18

Please sign in to comment.