mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Webhost serialize fixes (#512)
* Main: compress world type output log * WebHost: ensure plando_options is serializable to json
This commit is contained in:
@@ -50,7 +50,6 @@ def generate_api():
|
||||
return {"text": str(results),
|
||||
"detail": results}, 400
|
||||
else:
|
||||
meta["plando_options"] = list(meta.get("plando_options", []))
|
||||
gen = Generation(
|
||||
options=pickle.dumps({name: vars(options) for name, options in gen_options.items()}),
|
||||
# convert to json compatible
|
||||
|
Reference in New Issue
Block a user