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