refactor: Simplify cache resort calls in model metadata updates and API routes

This commit is contained in:
Will Miao
2025-07-24 10:47:19 +08:00
parent 07014d98ce
commit d6145e633f
5 changed files with 8 additions and 805 deletions

View File

@@ -587,7 +587,7 @@ class BaseModelRoutes(ABC):
logger.error(f"Error fetching CivitAI data for {model['file_path']}: {e}")
if needs_resort:
await cache.resort(name_only=True)
await cache.resort()
# Send completion message
await ws_manager.broadcast({