forked from 0x2620/pandora
call f.item
This commit is contained in:
parent
05534f2de4
commit
b991a3c381
1 changed files with 4 additions and 4 deletions
|
@ -160,11 +160,11 @@ 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()
|
f.item.update_selected()
|
||||||
if not item.rendered:
|
if not f.item.rendered:
|
||||||
item.tasks.update_timeline.delay(f.item.public_id)
|
f.item.tasks.update_timeline.delay(f.item.public_id)
|
||||||
else:
|
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')
|
response = json_response(text='file saved')
|
||||||
else:
|
else:
|
||||||
response = json_response(status=403, text='permission denied')
|
response = json_response(status=403, text='permission denied')
|
||||||
|
|
Loading…
Reference in a new issue