aboutsummaryrefslogtreecommitdiffstats
path: root/modules/ui_extra_networks.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-16 06:49:22 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-16 06:49:34 +0000
commitccd97886da1f659472cdca3de8731f59a70bbc28 (patch)
treecea56724bb1461fe9c1eb410a483aa3344e6a11a /modules/ui_extra_networks.py
parentf71630edb32b8de93f250767ec7a75cc9f44bc4a (diff)
downloadstable-diffusion-webui-gfx803-ccd97886da1f659472cdca3de8731f59a70bbc28.tar.gz
stable-diffusion-webui-gfx803-ccd97886da1f659472cdca3de8731f59a70bbc28.tar.bz2
stable-diffusion-webui-gfx803-ccd97886da1f659472cdca3de8731f59a70bbc28.zip
fix bogus metadata for extra networks appearing out of cache
fix description editing for checkpoint not immediately appearing on cards
Diffstat (limited to 'modules/ui_extra_networks.py')
-rw-r--r--modules/ui_extra_networks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py
index 760fba43..a4927c11 100644
--- a/modules/ui_extra_networks.py
+++ b/modules/ui_extra_networks.py
@@ -52,7 +52,7 @@ def get_metadata(page: str = "", item: str = ""):
if metadata is None:
return JSONResponse({})
- return JSONResponse({"metadata": metadata})
+ return JSONResponse({"metadata": json.dumps(metadata, indent=4, ensure_ascii=False)})
def get_single_card(page: str = "", tabname: str = "", name: str = ""):
@@ -66,6 +66,7 @@ def get_single_card(page: str = "", tabname: str = "", name: str = ""):
errors.display(e, "creating item for extra network")
item = page.items.get(name)
+ page.read_user_metadata(item)
item_html = page.create_html_for_item(item, tabname)
return JSONResponse({"html": item_html})