typo, fixes #693

This commit is contained in:
j 2012-03-21 09:13:38 +01:00
parent db9dd43740
commit 11b0a06107
7 changed files with 12 additions and 12 deletions

View file

@ -9,7 +9,7 @@ from celery.task import task
import models
@task(ignore_resulsts=True, queue='default')
@task(ignore_results=True, queue='default')
def update_matching_events(id):
from event.models import Event
a = models.Annotation.objects.get(pk=id)
@ -39,7 +39,7 @@ def update_matching_events(id):
for e in Event.objects.filter(id__in=update):
e.update_matches()
@task(ignore_resulsts=True, queue='default')
@task(ignore_results=True, queue='default')
def update_matching_places(id):
from place.models import Place
a = models.Annotation.objects.get(pk=id)
@ -68,7 +68,7 @@ def update_matching_places(id):
for e in Place.objects.filter(id__in=update):
e.update_matches()
@task(ignore_resulsts=True, queue='default')
@task(ignore_results=True, queue='default')
def update_item(id):
from item.models import Item
from clip.models import Clip

View file

@ -66,7 +66,7 @@ def update_or_create_instance(volume, f):
instance.file.item.update_wanted()
return instance
@task(ignore_resulsts=True, queue='default')
@task(ignore_results=True, queue='default')
def update_files(user, volume, files):
user = models.User.objects.get(username=user)
volume, created = models.Volume.objects.get_or_create(user=user, name=volume)

View file

@ -16,7 +16,7 @@ def update_all_matches(**kwargs):
e = Event.objects.get(pk=i)
e.update_matches()
@task(ignore_resulsts=True, queue='default')
@task(ignore_results=True, queue='default')
def update_matches(eventId):
event = Event.objects.get(pk=eventId)
event.update_matches()

View file

@ -38,7 +38,7 @@ def update_random_clip_sort():
Clip.objects.filter(pk=i).update(random=n)
n += 1
@task(ignore_resulsts=True, queue='default')
@task(ignore_results=True, queue='default')
def update_poster(itemId):
item = models.Item.objects.get(itemId=itemId)
item.make_poster(True)
@ -48,7 +48,7 @@ def update_poster(itemId):
icon=item.icon.name
)
@task(ignore_resulsts=True, queue='default')
@task(ignore_results=True, queue='default')
def update_external(itemId):
item = models.Item.objects.get(itemId=itemId)
item.update_external()
@ -66,7 +66,7 @@ def load_subtitles(itemId):
item.update_sort()
item.update_facets()
@task(ignore_resulsts=True, queue='default')
@task(ignore_results=True, queue='default')
def update_sitemap(base_url):
sitemap = os.path.abspath(os.path.join(settings.MEDIA_ROOT, 'sitemap.xml.gz'))

View file

@ -5,7 +5,7 @@ from celery.task import task
import models
@task(ignore_resulsts=True, queue='default')
@task(ignore_results=True, queue='default')
def update_itemsort(id):
p = models.Person.objects.get(pk=id)
p.update_itemsort()

View file

@ -15,7 +15,7 @@ def update_all_matches(**kwargs):
p = models.Place.objects.get(pk=i)
p.update_matches()
@task(ignore_resulsts=True, queue='default')
@task(ignore_results=True, queue='default')
def update_matches(id):
place = models.Place.objects.get(pk=id)
place.update_matches()

View file

@ -11,13 +11,13 @@ from celery.task import task
import models
@task(ignore_resulsts=True, queue='default')
@task(ignore_results=True, queue='default')
def parse_data(key):
session_data = models.SessionData.objects.get(session_key=key)
session_data.parse_data()
session_data.save()
@task(ignore_resulsts=True, queue='default')
@task(ignore_results=True, queue='default')
def update_numberoflists(username):
user = models.User.objects.get(username=username)
models.SessionData.objects.filter(