fix tv cron
This commit is contained in:
parent
49c024e87d
commit
ebea3b8e11
1 changed files with 1 additions and 1 deletions
|
@ -17,4 +17,4 @@ def update_program(**kwargs):
|
|||
for c in models.Channel.objects.all():
|
||||
c.update_program()
|
||||
old = datetime.now() - timedelta(days=180)
|
||||
models.Program.filter(created__lt=old).delete()
|
||||
models.Program.objects.filter(created__lt=old).delete()
|
||||
|
|
Loading…
Reference in a new issue