add tasks

This commit is contained in:
j 2011-10-09 17:57:12 +02:00
parent f8523b7ca2
commit ab8e876609

14
pandora/event/tasks.py Normal file
View file

@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
from datetime import timedelta
from celery.decorators import task, periodic_task
import models
@task(ignore_resulsts=True, queue='default')
def update_matches(eventId):
event = models.Event.objects.get(pk=eventId)
event.update_matches()