dont update sort/find while import subtitles

This commit is contained in:
j 2012-03-09 19:27:28 +01:00
commit 42486c885e
5 changed files with 7 additions and 10 deletions

View file

@ -2,11 +2,7 @@
# vi:si:et:sw=4:sts=4:ts=4
from optparse import make_option
import os
from os.path import join, dirname, basename, splitext, exists
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from django.core.management.base import BaseCommand
import monkey_patch.models
from ... import models

View file

@ -1255,7 +1255,6 @@ class Item(models.Model):
offset += f.duration
#remove left over clips without annotations
Clip.objects.filter(item=self, annotations__id=None).delete()
self.update_find()
def srt(self, layer):
return ox.srt.encode([{

View file

@ -59,6 +59,9 @@ def update_timeline(itemId):
def load_subtitles(itemId):
item = models.Item.objects.get(itemId=itemId)
item.load_subtitles()
item.update_find()
item.update_sort()
item.update_facets()
@task(ignore_resulsts=True, queue='default')
def update_sitemap(base_url):