update selected after upload subtitles

This commit is contained in:
j 2017-07-20 15:35:56 +02:00
parent b7368d74ae
commit 0df2df3c50

View file

@ -160,6 +160,10 @@ def upload(request, data=None):
f.data.save('data.raw', request.FILES['file']) f.data.save('data.raw', request.FILES['file'])
f.save() f.save()
os.chmod(f.data.path, 0o644) os.chmod(f.data.path, 0o644)
item.update_selected()
if not item.rendered:
item.tasks.update_timeline.delay(f.item.public_id)
else:
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: