mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-16 00:12:33 +08:00
store pretty
This commit is contained in:
parent
80f2eb7d3b
commit
50c8bc4ac9
@ -20,7 +20,7 @@ class AppSettings():
|
|||||||
file = self.user_manager.get_request_user_filepath(
|
file = self.user_manager.get_request_user_filepath(
|
||||||
request, "comfy.settings.json")
|
request, "comfy.settings.json")
|
||||||
with open(file, "w") as f:
|
with open(file, "w") as f:
|
||||||
f.write(json.dumps(settings))
|
f.write(json.dumps(settings, indent=4))
|
||||||
|
|
||||||
def add_routes(self, routes):
|
def add_routes(self, routes):
|
||||||
@routes.get("/settings")
|
@routes.get("/settings")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user