fixup b991a3c381 sometimes its a module

This commit is contained in:
j 2017-08-04 18:55:45 +02:00
parent e1bcb7e348
commit d6ee3019aa

View file

@ -162,9 +162,9 @@ def upload(request, data=None):
os.chmod(f.data.path, 0o644) os.chmod(f.data.path, 0o644)
f.item.update_selected() f.item.update_selected()
if not f.item.rendered: if not f.item.rendered:
f.item.tasks.update_timeline.delay(f.item.public_id) item.tasks.update_timeline.delay(f.item.public_id)
else: else:
f.item.tasks.load_subtitles.delay(f.item.public_id) item.tasks.load_subtitles.delay(f.item.public_id)
response = json_response(text='file saved') response = json_response(text='file saved')
else: else:
response = json_response(status=403, text='permission denied') response = json_response(status=403, text='permission denied')