Refactor Lora cache update logic and enhance context menu item handling

This commit is contained in:
Will Miao
2025-02-18 20:55:31 +08:00
parent 80b860e98a
commit dac07308c3
4 changed files with 28 additions and 36 deletions

View File

@@ -330,6 +330,8 @@ class ApiRoutes:
with open(metadata_path, 'w', encoding='utf-8') as f:
json.dump(local_metadata, f, indent=2, ensure_ascii=False)
await self.scanner.update_single_lora_cache(local_metadata['file_path'], local_metadata)
async def fetch_all_civitai(self, request: web.Request) -> web.Response:
"""Fetch CivitAI metadata for all loras in the background"""
try: