From b991a3c381021d918f4a365e4cef4cfaa2e80340 Mon Sep 17 00:00:00 2001 From: j Date: Fri, 4 Aug 2017 17:34:10 +0200 Subject: [PATCH] call f.item --- pandora/archive/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora/archive/views.py b/pandora/archive/views.py index 5dcf7921..9a1290bb 100644 --- a/pandora/archive/views.py +++ b/pandora/archive/views.py @@ -160,11 +160,11 @@ def upload(request, data=None): f.data.save('data.raw', request.FILES['file']) f.save() os.chmod(f.data.path, 0o644) - item.update_selected() - if not item.rendered: - item.tasks.update_timeline.delay(f.item.public_id) + f.item.update_selected() + if not f.item.rendered: + f.item.tasks.update_timeline.delay(f.item.public_id) else: - item.tasks.load_subtitles.delay(f.item.public_id) + f.item.tasks.load_subtitles.delay(f.item.public_id) response = json_response(text='file saved') else: response = json_response(status=403, text='permission denied')