From 1cbfd6abe86b395d253bafe4830027305fb83d88 Mon Sep 17 00:00:00 2001 From: profitroll Date: Wed, 15 Feb 2023 16:08:01 +0100 Subject: [PATCH] Changed hashing behavior --- modules/hasher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/hasher.py b/modules/hasher.py index b74d7a8..0f7e1ad 100644 --- a/modules/hasher.py +++ b/modules/hasher.py @@ -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 \ No newline at end of file