reply with duplicate to rpc call #2

master
bakatrouble 1 year ago
parent 4d494267cd
commit 9ecd8810ce

@ -50,7 +50,7 @@ class ChannelHelperBotModuleConfig(TelegramBotModuleConfig):
image_hash = imagehash.phash(im)
if self.queued_items.filter(image_hash=image_hash, type='photo').count() > 0:
raise RuntimeError('Duplicate')
return 'duplicate'
width, height = im.size
if width > 2000 or height > 2000:

Loading…
Cancel
Save