tidy(mm): rename ckpt "last_modified" -> "converted_at"

Clarify what this timestamp means
This commit is contained in:
psychedelicious
2024-03-01 15:27:41 +11:00
parent 9b40c28144
commit bd4fd9693d
5 changed files with 7 additions and 9 deletions

View File

@ -29,7 +29,7 @@ class ControlNetLoader(GenericDiffusersLoader):
return False
elif (
dest_path.exists()
and (dest_path / "config.json").stat().st_mtime >= (config.last_modified or 0.0)
and (dest_path / "config.json").stat().st_mtime >= (config.converted_at or 0.0)
and (dest_path / "config.json").stat().st_mtime >= model_path.stat().st_mtime
):
return False

View File

@ -59,7 +59,7 @@ class StableDiffusionDiffusersModel(GenericDiffusersLoader):
return False
elif (
dest_path.exists()
and (dest_path / "model_index.json").stat().st_mtime >= (config.last_modified or 0.0)
and (dest_path / "model_index.json").stat().st_mtime >= (config.converted_at or 0.0)
and (dest_path / "model_index.json").stat().st_mtime >= model_path.stat().st_mtime
):
return False

View File

@ -31,7 +31,7 @@ class VaeLoader(GenericDiffusersLoader):
return False
elif (
dest_path.exists()
and (dest_path / "config.json").stat().st_mtime >= (config.last_modified or 0.0)
and (dest_path / "config.json").stat().st_mtime >= (config.converted_at or 0.0)
and (dest_path / "config.json").stat().st_mtime >= model_path.stat().st_mtime
):
return False