fix tv cron

This commit is contained in:
j 2017-02-17 15:50:18 +01:00
parent 49c024e87d
commit ebea3b8e11

View file

@ -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()