13 lines
300 B
Python
13 lines
300 B
Python
# -*- coding: utf-8 -*-
|
|
# vi:si:et:sw=4:sts=4:ts=4
|
|
from datetime import timedelta
|
|
|
|
from celery.task import periodic_task
|
|
|
|
import models
|
|
|
|
|
|
@periodic_task(run_every=timedelta(days=1), queue='encoding')
|
|
def update_program(**kwargs):
|
|
for c in models.Channel.objects.all():
|
|
c.update_program()
|