Skip to content

Commit

Permalink
WebHost: Prevent dict type options with valid_keys from exporting…
Browse files Browse the repository at this point in the history
… with [] on weighted settings. (ArchipelagoMW#1762)

Thanks HK.
  • Loading branch information
ThePhar authored May 7, 2023
1 parent d3447a3 commit c8ebad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebHostLib/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_html_doc(option_type: type(Options.Option)) -> str:
"defaultValue": list(option.default)
}

elif issubclass(option, Options.VerifyKeys):
elif issubclass(option, Options.VerifyKeys) and not issubclass(option, Options.OptionDict):
if option.valid_keys:
game_options[option_name] = {
"type": "custom-list",
Expand Down

0 comments on commit c8ebad1

Please sign in to comment.