This commit is contained in:
j 2014-11-18 18:21:41 +00:00
parent 80ce81ac67
commit 55f9f8b82b

View file

@ -100,7 +100,7 @@ def update_item(id):
#cleanup orphaned clips
Clip.objects.filter(item__id=a.item.id, annotations__id=None).delete()
#update facets if needed
with transaction.commit_on_sucess():
with transaction.commit_on_success():
if filter(lambda f: f['id'] == a.layer and f.get('filter'), settings.CONFIG['itemKeys']):
a.item.update_layer_facet(a.layer)
Item.objects.filter(id=a.item.id).update(modified=a.modified)