fix bogus metadata for extra networks appearing out of cache

fix description editing for checkpoint not immediately appearing on cards
This commit is contained in:
AUTOMATIC1111
2023-07-16 09:49:22 +03:00
parent f71630edb3
commit ccd97886da
3 changed files with 8 additions and 8 deletions

View File

@@ -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})