From 0f9e80e1e6c5bb4e451229c30885dbf0447c4eff Mon Sep 17 00:00:00 2001 From: j Date: Sun, 26 Jun 2016 23:22:27 +0200 Subject: [PATCH] avoid saving item twice --- pandora/archive/tasks.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pandora/archive/tasks.py b/pandora/archive/tasks.py index 28852f51..75e1fef9 100644 --- a/pandora/archive/tasks.py +++ b/pandora/archive/tasks.py @@ -136,10 +136,7 @@ def extract_stream(fileId): stream.extract_derivatives() # get current version from db file = models.File.objects.get(id=fileId) - if not file.item.rendered: - file.item.update_timeline() - if file.item.rendered: - file.item.save() + file.item.update_timeline() file.extract_tracks() models.File.objects.filter(id=fileId).update(encoding=False)