This commit is contained in:
j 2011-05-30 15:40:16 +02:00
commit 884be1172d
3 changed files with 21 additions and 2 deletions

13
pandora/place/tasks.py Normal file
View file

@ -0,0 +1,13 @@
# -*- 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(id):
place = models.Place.objects.get(pk=id)
place.update_matches()