mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
correctly report back broken yaml files
This commit is contained in:
@@ -30,7 +30,7 @@ def generate(race=False):
|
|||||||
flash(options)
|
flash(options)
|
||||||
else:
|
else:
|
||||||
results, gen_options = roll_yamls(options)
|
results, gen_options = roll_yamls(options)
|
||||||
if any(result == str for result in results.values()):
|
if any(type(result) == str for result in results.values()):
|
||||||
return render_template("checkresult.html", results=results)
|
return render_template("checkresult.html", results=results)
|
||||||
elif len(gen_options) > app.config["MAX_ROLL"]:
|
elif len(gen_options) > app.config["MAX_ROLL"]:
|
||||||
flash(f"Sorry, generating of multiworld is limited to {app.config['MAX_ROLL']} players for now. "
|
flash(f"Sorry, generating of multiworld is limited to {app.config['MAX_ROLL']} players for now. "
|
||||||
|
Reference in New Issue
Block a user