WebHost: Allowing options that work on WebHost to be used in presets (#3441)

This commit is contained in:
Exempt-Medic
2024-06-03 04:42:27 -04:00
committed by GitHub
parent 424c8b0be9
commit d9120f0bea
2 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ def option_presets(game: str) -> Response:
f"Expected {option.special_range_names.keys()} or {option.range_start}-{option.range_end}."
presets[preset_name][preset_option_name] = option.value
elif isinstance(option, Options.Range):
elif isinstance(option, (Options.Range, Options.OptionSet, Options.OptionList, Options.ItemDict)):
presets[preset_name][preset_option_name] = option.value
elif isinstance(preset_option, str):
# Ensure the option value is valid for Choice and Toggle options