mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-22 05:32:12 -03:00
When a deleted model is checked against the SQLite archive and not found, the `db_checked` flag was set in memory but never saved to disk. This occurred because the save operation was only triggered when `civitai_api_not_found` was True, which is not the case for deleted models (since the CivitAI API is not attempted). As a result, deleted models would be rechecked on every refresh instead of being skipped. Changes: - Introduce a `needs_save` flag to track when metadata state is updated - Save metadata whenever `db_checked` is set to True, regardless of API status - Ensure `last_checked_at` is set for SQLite-only attempts - Add regression test to verify the fix