#7 Notifier counter reset fix.
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Alexey Skobkin 2022-05-30 23:23:09 +03:00
parent f9ffdac38a
commit 8554689fef

View file

@ -106,6 +106,7 @@ class Notifier:
if self.sent_counter >= self.BATCH_LIMIT: if self.sent_counter >= self.BATCH_LIMIT:
# TODO: probably implement better later # TODO: probably implement better later
time.sleep(1) time.sleep(1)
self.sent_counter = 0
def __send_update(self, telegram_id: int, update: FeedItem): def __send_update(self, telegram_id: int, update: FeedItem):
self.bot.send_message( self.bot.send_message(