diff --git a/tasks.py b/tasks.py index c183795..75e7202 100644 --- a/tasks.py +++ b/tasks.py @@ -36,7 +36,7 @@ def update_double_imdb(): item.models.Item.objects.filter(sort__imdbId=i.sort.imdbId).count() == 1: l.remove(i) - transaction.commit_unless_managed() + transaction.commit() def update_keywords(): t = text.models.Text.get('j:Keywords') @@ -66,4 +66,4 @@ def update_queued(): for i in l.items.all(): if not i.files.filter(encoding=True).exists(): l.remove(i) - transaction.commit_unless_managed() + transaction.commit()