Options: make common options overridable in a game section

WebHost: add prog balancing and accessibility to settings page
This commit is contained in:
Fabian Dill
2021-12-28 18:43:52 +01:00
parent 2e56c226db
commit 6e4b255be5
5 changed files with 9 additions and 15 deletions

View File

@@ -469,7 +469,7 @@ def roll_settings(weights: dict, plando_options: typing.Set[str] = frozenset(("b
ret = argparse.Namespace()
for option_key in Options.per_game_common_options:
if option_key in weights:
if option_key in weights and option_key not in Options.common_options:
raise Exception(f"Option {option_key} has to be in a game's section, not on its own.")
ret.game = get_choice("game", weights)