We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a9efd8 commit e48b1c9Copy full SHA for e48b1c9
WebHostLib/options.py
@@ -79,10 +79,6 @@ def test_ordered(obj):
79
@cache.cached()
80
def option_presets(game: str) -> Response:
81
world = AutoWorldRegister.world_types[game]
82
- presets = {}
83
-
84
- if world.web.options_presets:
85
- presets = presets | world.web.options_presets
86
87
class SetEncoder(json.JSONEncoder):
88
def default(self, obj):
@@ -91,7 +87,7 @@ def default(self, obj):
91
return list(obj)
92
return json.JSONEncoder.default(self, obj)
93
89
94
- json_data = json.dumps(presets, cls=SetEncoder)
90
+ json_data = json.dumps(world.web.options_presets, cls=SetEncoder)
95
response = Response(json_data)
96
response.headers["Content-Type"] = "application/json"
97
return response
0 commit comments