WebHost: Fix as_dict attribute error (#1977)
* WebHost: Fix as_dict attribute error
Introduced in 827444f5a4
* WebHost: Add assertion that baked_server_options is a dict
Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
---------
Co-authored-by: black-sliver <59490463+black-sliver@users.noreply.github.com>
This commit is contained in:
parent
dfe08298ef
commit
8df08b53d9
5
Main.py
5
Main.py
|
@ -23,7 +23,8 @@ __all__ = ["main"]
|
|||
|
||||
def main(args, seed=None, baked_server_options: Optional[Dict[str, object]] = None):
|
||||
if not baked_server_options:
|
||||
baked_server_options = get_settings().server_options
|
||||
baked_server_options = get_settings().server_options.as_dict()
|
||||
assert isinstance(baked_server_options, dict)
|
||||
if args.outputpath:
|
||||
os.makedirs(args.outputpath, exist_ok=True)
|
||||
output_path.cached_path = args.outputpath
|
||||
|
@ -372,7 +373,7 @@ def main(args, seed=None, baked_server_options: Optional[Dict[str, object]] = No
|
|||
"connect_names": {name: (0, player) for player, name in world.player_name.items()},
|
||||
"locations": locations_data,
|
||||
"checks_in_area": checks_in_area,
|
||||
"server_options": baked_server_options.as_dict(),
|
||||
"server_options": baked_server_options,
|
||||
"er_hint_data": er_hint_data,
|
||||
"precollected_items": precollected_items,
|
||||
"precollected_hints": precollected_hints,
|
||||
|
|
Loading…
Reference in New Issue