From ed7035b74ee9ad536bf0bf8a18b62d9ecdc9a996 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Fri, 26 Aug 2022 11:52:05 +0300 Subject: [PATCH] fix count command --- bots/modules/channel_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/modules/channel_helper.py b/bots/modules/channel_helper.py index b2493fa..b1e168c 100644 --- a/bots/modules/channel_helper.py +++ b/bots/modules/channel_helper.py @@ -153,7 +153,7 @@ class ChannelHelperBotModuleConfig(TelegramBotModuleConfig): if self.users.count() and not self.users.filter(user_id=update.effective_user.id).count(): update.effective_message.reply_text('GTFO') return - update.effective_message.reply_text(f'{QueuedItem.objects.filter(config=self).count()} items queued') + update.effective_message.reply_text(f'{QueuedItem.objects.filter(config=self, processed=False).count()} items queued') def build_dispatcher(self, dispatcher: Dispatcher): dispatcher.add_handler(CommandHandler(['delete', 'del', 'remove', 'rem'], self.handle_delete, Filters.reply))