This commit is contained in:
Will Miao
2025-02-18 21:10:42 +08:00
parent dac07308c3
commit e19300d5f4
3 changed files with 10 additions and 6 deletions

View File

@@ -330,7 +330,7 @@ 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)
await self.scanner.update_single_lora_cache(local_metadata['file_path'], 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"""