matches
This commit is contained in:
parent
f908e4cedb
commit
884be1172d
3 changed files with 21 additions and 2 deletions
13
pandora/place/tasks.py
Normal file
13
pandora/place/tasks.py
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue