From b8dd67088b98bdf5f21f850e854d9abe0d90f881 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 4 Aug 2023 17:07:51 +0300 Subject: [PATCH] dont print shit i dont care about --- files/helpers/media.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/files/helpers/media.py b/files/helpers/media.py index e00b45d10..bc3d231a1 100644 --- a/files/helpers/media.py +++ b/files/helpers/media.py @@ -236,12 +236,8 @@ def process_image(filename, v, resize=0, trim=False, uploader_id=None, db=None): with Image.open(img_path) as i: i_hash = str(imagehash.phash(i)) - if i_hash in hashes.keys(): - print(STARS, flush=True) - print(hashes[i_hash], flush=True) - print(img_path, flush=True) - print(STARS, flush=True) - else: hashes[i_hash] = img_path + if i_hash not in hashes.keys(): + hashes[i_hash] = img_path with Image.open(filename) as i: i_hash = str(imagehash.phash(i))