Skip to content

Commit

Permalink
remove tmk file after upload
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Jan 3, 2024
1 parent 7c6fb6b commit 3373365
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/model/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ def process(self, video: schemas.Message) -> schemas.GenericItem:
)
s3.upload_file_to_s3(self.tmk_bucket(), self.tmk_file_path(video_filename))
finally:
os.remove(self.tmk_file_path(video_filename))
os.remove(temp_file_name)
return dict(**video.dict(), **{"folder": self.tmk_bucket(), "filepath": self.tmk_file_path(video_filename), "hash_value": hash_value})

0 comments on commit 3373365

Please sign in to comment.