fix
This commit is contained in:
parent
62b76735d1
commit
c489d7740f
@ -100,9 +100,9 @@ class ChannelHelperBotModuleConfig(TelegramBotModuleConfig):
|
|||||||
|
|
||||||
def rpc_get_hashes(self):
|
def rpc_get_hashes(self):
|
||||||
config._reload_maybe()
|
config._reload_maybe()
|
||||||
return (self.queued_items.filter(type='photo', processed=False)
|
return list(self.queued_items.filter(type='photo', processed=False)
|
||||||
.exclude(image_hash__isnull=True)
|
.exclude(image_hash__isnull=True)
|
||||||
.values_list('image_hash', flat=True))
|
.values_list('image_hash', flat=True))
|
||||||
|
|
||||||
|
|
||||||
def periodic_task(self, bot: Bot):
|
def periodic_task(self, bot: Bot):
|
||||||
|
Loading…
Reference in New Issue
Block a user