typo, fixes #693
This commit is contained in:
parent
db9dd43740
commit
11b0a06107
7 changed files with 12 additions and 12 deletions
|
@ -9,7 +9,7 @@ from celery.task import task
|
||||||
import models
|
import models
|
||||||
|
|
||||||
|
|
||||||
@task(ignore_resulsts=True, queue='default')
|
@task(ignore_results=True, queue='default')
|
||||||
def update_matching_events(id):
|
def update_matching_events(id):
|
||||||
from event.models import Event
|
from event.models import Event
|
||||||
a = models.Annotation.objects.get(pk=id)
|
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):
|
for e in Event.objects.filter(id__in=update):
|
||||||
e.update_matches()
|
e.update_matches()
|
||||||
|
|
||||||
@task(ignore_resulsts=True, queue='default')
|
@task(ignore_results=True, queue='default')
|
||||||
def update_matching_places(id):
|
def update_matching_places(id):
|
||||||
from place.models import Place
|
from place.models import Place
|
||||||
a = models.Annotation.objects.get(pk=id)
|
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):
|
for e in Place.objects.filter(id__in=update):
|
||||||
e.update_matches()
|
e.update_matches()
|
||||||
|
|
||||||
@task(ignore_resulsts=True, queue='default')
|
@task(ignore_results=True, queue='default')
|
||||||
def update_item(id):
|
def update_item(id):
|
||||||
from item.models import Item
|
from item.models import Item
|
||||||
from clip.models import Clip
|
from clip.models import Clip
|
||||||
|
|
|
@ -66,7 +66,7 @@ def update_or_create_instance(volume, f):
|
||||||
instance.file.item.update_wanted()
|
instance.file.item.update_wanted()
|
||||||
return instance
|
return instance
|
||||||
|
|
||||||
@task(ignore_resulsts=True, queue='default')
|
@task(ignore_results=True, queue='default')
|
||||||
def update_files(user, volume, files):
|
def update_files(user, volume, files):
|
||||||
user = models.User.objects.get(username=user)
|
user = models.User.objects.get(username=user)
|
||||||
volume, created = models.Volume.objects.get_or_create(user=user, name=volume)
|
volume, created = models.Volume.objects.get_or_create(user=user, name=volume)
|
||||||
|
|
|
@ -16,7 +16,7 @@ def update_all_matches(**kwargs):
|
||||||
e = Event.objects.get(pk=i)
|
e = Event.objects.get(pk=i)
|
||||||
e.update_matches()
|
e.update_matches()
|
||||||
|
|
||||||
@task(ignore_resulsts=True, queue='default')
|
@task(ignore_results=True, queue='default')
|
||||||
def update_matches(eventId):
|
def update_matches(eventId):
|
||||||
event = Event.objects.get(pk=eventId)
|
event = Event.objects.get(pk=eventId)
|
||||||
event.update_matches()
|
event.update_matches()
|
||||||
|
|
|
@ -38,7 +38,7 @@ def update_random_clip_sort():
|
||||||
Clip.objects.filter(pk=i).update(random=n)
|
Clip.objects.filter(pk=i).update(random=n)
|
||||||
n += 1
|
n += 1
|
||||||
|
|
||||||
@task(ignore_resulsts=True, queue='default')
|
@task(ignore_results=True, queue='default')
|
||||||
def update_poster(itemId):
|
def update_poster(itemId):
|
||||||
item = models.Item.objects.get(itemId=itemId)
|
item = models.Item.objects.get(itemId=itemId)
|
||||||
item.make_poster(True)
|
item.make_poster(True)
|
||||||
|
@ -48,7 +48,7 @@ def update_poster(itemId):
|
||||||
icon=item.icon.name
|
icon=item.icon.name
|
||||||
)
|
)
|
||||||
|
|
||||||
@task(ignore_resulsts=True, queue='default')
|
@task(ignore_results=True, queue='default')
|
||||||
def update_external(itemId):
|
def update_external(itemId):
|
||||||
item = models.Item.objects.get(itemId=itemId)
|
item = models.Item.objects.get(itemId=itemId)
|
||||||
item.update_external()
|
item.update_external()
|
||||||
|
@ -66,7 +66,7 @@ def load_subtitles(itemId):
|
||||||
item.update_sort()
|
item.update_sort()
|
||||||
item.update_facets()
|
item.update_facets()
|
||||||
|
|
||||||
@task(ignore_resulsts=True, queue='default')
|
@task(ignore_results=True, queue='default')
|
||||||
def update_sitemap(base_url):
|
def update_sitemap(base_url):
|
||||||
sitemap = os.path.abspath(os.path.join(settings.MEDIA_ROOT, 'sitemap.xml.gz'))
|
sitemap = os.path.abspath(os.path.join(settings.MEDIA_ROOT, 'sitemap.xml.gz'))
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ from celery.task import task
|
||||||
import models
|
import models
|
||||||
|
|
||||||
|
|
||||||
@task(ignore_resulsts=True, queue='default')
|
@task(ignore_results=True, queue='default')
|
||||||
def update_itemsort(id):
|
def update_itemsort(id):
|
||||||
p = models.Person.objects.get(pk=id)
|
p = models.Person.objects.get(pk=id)
|
||||||
p.update_itemsort()
|
p.update_itemsort()
|
||||||
|
|
|
@ -15,7 +15,7 @@ def update_all_matches(**kwargs):
|
||||||
p = models.Place.objects.get(pk=i)
|
p = models.Place.objects.get(pk=i)
|
||||||
p.update_matches()
|
p.update_matches()
|
||||||
|
|
||||||
@task(ignore_resulsts=True, queue='default')
|
@task(ignore_results=True, queue='default')
|
||||||
def update_matches(id):
|
def update_matches(id):
|
||||||
place = models.Place.objects.get(pk=id)
|
place = models.Place.objects.get(pk=id)
|
||||||
place.update_matches()
|
place.update_matches()
|
||||||
|
|
|
@ -11,13 +11,13 @@ from celery.task import task
|
||||||
import models
|
import models
|
||||||
|
|
||||||
|
|
||||||
@task(ignore_resulsts=True, queue='default')
|
@task(ignore_results=True, queue='default')
|
||||||
def parse_data(key):
|
def parse_data(key):
|
||||||
session_data = models.SessionData.objects.get(session_key=key)
|
session_data = models.SessionData.objects.get(session_key=key)
|
||||||
session_data.parse_data()
|
session_data.parse_data()
|
||||||
session_data.save()
|
session_data.save()
|
||||||
|
|
||||||
@task(ignore_resulsts=True, queue='default')
|
@task(ignore_results=True, queue='default')
|
||||||
def update_numberoflists(username):
|
def update_numberoflists(username):
|
||||||
user = models.User.objects.get(username=username)
|
user = models.User.objects.get(username=username)
|
||||||
models.SessionData.objects.filter(
|
models.SessionData.objects.filter(
|
||||||
|
|
Loading…
Reference in a new issue