fix periodic task runner

This commit is contained in:
bakatrouble 2019-11-24 19:40:21 +03:00
parent 0aaa78a638
commit bb3da27f9a

View File

@ -38,6 +38,7 @@ class TelegramBot(models.Model):
return return
self.config.periodic_task(self.get_bot()) self.config.periodic_task(self.get_bot())
self.periodic_last_run = timezone.now() self.periodic_last_run = timezone.now()
self.save()
def __str__(self): def __str__(self):
return f'#{self.pk} {self.title}' return f'#{self.pk} {self.title}'