Commit 43809573 authored by Ilya Simonov's avatar Ilya Simonov

no delete local file after upload to s3

parent 5b58e6e9
......@@ -26,6 +26,5 @@ def send_video_to_s3():
local_video.status = READY
local_video.save(update_fields=['s3_file', 'status'])
os.remove(local_video.local_file.path)
local_videos.update(local_file=None)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment