forked from rDrama/rDrama
dont print shit i dont care about
parent
58bc85c146
commit
b8dd67088b
|
@ -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:
|
with Image.open(img_path) as i:
|
||||||
i_hash = str(imagehash.phash(i))
|
i_hash = str(imagehash.phash(i))
|
||||||
|
|
||||||
if i_hash in hashes.keys():
|
if i_hash not in hashes.keys():
|
||||||
print(STARS, flush=True)
|
hashes[i_hash] = img_path
|
||||||
print(hashes[i_hash], flush=True)
|
|
||||||
print(img_path, flush=True)
|
|
||||||
print(STARS, flush=True)
|
|
||||||
else: hashes[i_hash] = img_path
|
|
||||||
|
|
||||||
with Image.open(filename) as i:
|
with Image.open(filename) as i:
|
||||||
i_hash = str(imagehash.phash(i))
|
i_hash = str(imagehash.phash(i))
|
||||||
|
|
Loading…
Reference in New Issue