mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-08-28 07:18:37 +00:00
use not equal when comparing mtime
This commit is contained in:
@@ -32,7 +32,7 @@ def sha256_from_cache(filename, title, use_addnet_hash=False):
|
||||
cached_sha256 = hashes[title].get("sha256", None)
|
||||
cached_mtime = hashes[title].get("mtime", 0)
|
||||
|
||||
if ondisk_mtime > cached_mtime or cached_sha256 is None:
|
||||
if ondisk_mtime != cached_mtime or cached_sha256 is None:
|
||||
return None
|
||||
|
||||
return cached_sha256
|
||||
|
||||
Reference in New Issue
Block a user