Changed hashing behavior

This commit is contained in:
Profitroll 2023-02-15 16:08:01 +01:00
parent 1f867630f4
commit 1cbfd6abe8

View File

@ -52,7 +52,7 @@ async def get_duplicates(hash: str, album: str) -> list:
)
except ValueError:
continue
print("{0:<30} {1}".format(image_name, distance), flush=True)
if distance <= 0.25:
# print("{0:<30} {1}".format(image_name, distance), flush=True)
if distance <= 0.1:
duplicates.append({"id": cache[image_name][0], "filename": image_name, "difference": distance})
return duplicates