reply with duplicate to rpc call #2

This commit is contained in:
bakatrouble 2022-12-25 17:24:26 +03:00
parent 4d494267cd
commit 9ecd8810ce

View File

@ -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: