mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-03-31 21:03:24 -07:00
WebHost: Handle blank values for OptionCounters #5517
This commit is contained in:
@@ -231,7 +231,7 @@ def generate_yaml(game: str):
|
||||
if key_parts[-1] == "qty":
|
||||
if key_parts[0] not in options:
|
||||
options[key_parts[0]] = {}
|
||||
if val != "0":
|
||||
if val and val != "0":
|
||||
options[key_parts[0]][key_parts[1]] = int(val)
|
||||
del options[key]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user