mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
Fix save_metadata call to await asynchronous execution in load_metadata function. Fixes #192
This commit is contained in:
@@ -245,7 +245,7 @@ async def load_metadata(file_path: str, model_class: Type[BaseModelMetadata] = L
|
||||
# needs_update = True
|
||||
|
||||
if needs_update:
|
||||
save_metadata(file_path, model_class.from_dict(data))
|
||||
await save_metadata(file_path, model_class.from_dict(data))
|
||||
|
||||
return model_class.from_dict(data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user