forked from 0x2620/pandora
fixup b991a3c381
sometimes its a module
This commit is contained in:
parent
e1bcb7e348
commit
d6ee3019aa
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||||
|
|
Loading…
Reference in a new issue