forked from 0x2620/pandora
add tasks
This commit is contained in:
parent
f8523b7ca2
commit
ab8e876609
1 changed files with 14 additions and 0 deletions
14
pandora/event/tasks.py
Normal file
14
pandora/event/tasks.py
Normal 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()
|
||||
|
Loading…
Reference in a new issue