From bb3da27f9a087d6c7957ed0d2672daf5a2c35dbf Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sun, 24 Nov 2019 19:40:21 +0300 Subject: [PATCH] fix periodic task runner --- bots/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bots/models.py b/bots/models.py index 33b4bb5..ef10db0 100644 --- a/bots/models.py +++ b/bots/models.py @@ -38,6 +38,7 @@ class TelegramBot(models.Model): return self.config.periodic_task(self.get_bot()) self.periodic_last_run = timezone.now() + self.save() def __str__(self): return f'#{self.pk} {self.title}'