mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-05-13 16:47:38 -03:00
refactor(download-history): rename mark_not_downloaded to mark_as_deleted
The method mark_not_downloaded() was misleading — it doesn't negate 'downloaded' history (the model was indeed downloaded before), but rather sets is_deleted_override = 1 to indicate the version was downloaded and subsequently deleted. This flag allows re-download when the 'skip previously downloaded' setting is enabled. Rename to mark_as_deleted() to accurately reflect its semantics.
This commit is contained in:
@@ -206,7 +206,7 @@ class DownloadedVersionHistoryService:
|
||||
)
|
||||
conn.commit()
|
||||
|
||||
async def mark_not_downloaded(self, model_type: str, version_id: int) -> None:
|
||||
async def mark_as_deleted(self, model_type: str, version_id: int) -> None:
|
||||
normalized_type = _normalize_model_type(model_type)
|
||||
normalized_version_id = _normalize_int(version_id)
|
||||
if normalized_type is None or normalized_version_id is None:
|
||||
|
||||
Reference in New Issue
Block a user