use not equal when comparing mtime

This commit is contained in:
w-e-w
2025-02-08 02:41:39 +09:00
parent 57e15ec9b5
commit dce4a4cd3b

View File

@@ -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