WebHost: Prevent `dict` type options with `valid_keys` from exporting with [] on weighted settings. (#1762)

Thanks HK.
This commit is contained in:
Zach Parks 2023-05-06 19:07:57 -05:00 committed by GitHub
parent d3447a3983
commit c8ebad1dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ def create():
"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",