add --no-hashing

This commit is contained in:
AUTOMATIC
2023-02-04 11:38:56 +03:00
parent 30228c67ca
commit 81823407d9
4 changed files with 9 additions and 2 deletions

View File

@@ -59,6 +59,9 @@ class CheckpointInfo:
def calculate_shorthash(self):
self.sha256 = hashes.sha256(self.filename, "checkpoint/" + self.name)
if self.sha256 is None:
return
self.shorthash = self.sha256[0:10]
if self.shorthash not in self.ids: