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
self.config.periodic_task(self.get_bot())
self.periodic_last_run = timezone.now()
self.save()
def __str__(self):
return f'#{self.pk} {self.title}'