mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 07:05:43 -03:00
Optimize LoRA cache sorting with flexible resort method
- Add optional name-only sorting to LoRA cache resort method - Update API routes to use new resort method with name-only flag - Refactor HTML template to improve script placement and initialization check
This commit is contained in:
@@ -368,7 +368,7 @@ class ApiRoutes:
|
||||
logger.error(f"Error fetching CivitAI data for {lora['file_path']}: {e}")
|
||||
|
||||
if needs_resort:
|
||||
cache.sorted_by_name = sorted(cache.raw_data, key=itemgetter('model_name'))
|
||||
await cache.resort(name_only=True)
|
||||
|
||||
# 发送完成消息
|
||||
await ws_manager.broadcast({
|
||||
|
||||
Reference in New Issue
Block a user