fix periodic task runner
This commit is contained in:
parent
0aaa78a638
commit
bb3da27f9a
@ -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}'
|
||||
|
Loading…
Reference in New Issue
Block a user