Merge branch 'main' into dev

This commit is contained in:
Will Miao
2025-03-19 17:34:29 +08:00
5 changed files with 14 additions and 6 deletions

View File

@@ -146,6 +146,9 @@ class DownloadManager:
# Update the hash index with the new LoRA entry
self.file_monitor.scanner._hash_index.add_entry(metadata_dict['sha256'], metadata_dict['file_path'])
# Update the hash index with the new LoRA entry
self.file_monitor.scanner._hash_index.add_entry(metadata_dict['sha256'], metadata_dict['file_path'])
# Report 100% completion
if progress_callback:
await progress_callback(100)

View File

@@ -658,7 +658,7 @@ class LoraScanner:
def get_lora_hash_by_path(self, file_path: str) -> Optional[str]:
"""Get hash for a LoRA by its file path"""
return self._hash_index.get_hash(file_path)
return self._hash_index.get_hash(file_path)
def get_preview_url_by_hash(self, sha256: str) -> Optional[str]:
"""Get preview static URL for a LoRA by its hash"""