Fix remaining_mode on webhost. (#449)

* Fix remaining_mode on webhost.

* Actually use the correct parameter for remaining_mode.
This commit is contained in:
CaitSith2 2022-04-20 07:46:05 -07:00 committed by GitHub
parent 6a25bbeef0
commit 8bb566a250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ def get_meta(options_source: dict) -> dict:
meta = {
"hint_cost": int(options_source.get("hint_cost", 10)),
"forfeit_mode": options_source.get("forfeit_mode", "goal"),
"remaining_mode": options_source.get("forfeit_mode", "disabled"),
"remaining_mode": options_source.get("remaining_mode", "disabled"),
"collect_mode": options_source.get("collect_mode", "disabled"),
}
return meta
@ -51,7 +51,7 @@ def generate(race=False):
if race:
meta["item_cheat"] = False
meta["remaining"] = False
meta["remaining_mode"] = "disabled"
if any(type(result) == str for result in results.values()):
return render_template("checkResult.html", results=results)