mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
refactor: Simplify cache resort calls in model metadata updates and API routes
This commit is contained in:
@@ -1094,7 +1094,7 @@ class ModelRouteUtils:
|
||||
# If model_name was updated, resort the cache
|
||||
if 'model_name' in metadata_updates:
|
||||
cache = await scanner.get_cached_data()
|
||||
await cache.resort(name_only=True)
|
||||
await cache.resort()
|
||||
|
||||
return web.json_response({'success': True})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user