Skip to content

Commit

Permalink
Update gateway/api/services/file_storage.py
Browse files Browse the repository at this point in the history
Co-authored-by: Goyo <[email protected]>
  • Loading branch information
Tansito and korgan00 authored Dec 20, 2024
1 parent 8bd723c commit 4e4cb62
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gateway/api/services/file_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,6 @@ def get_file(self, file_name: str) -> Optional[Tuple[FileWrapper, str, int]]:
)
return None

file_type = mimetypes.guess_type(path_to_file)[0]
file_size = os.path.getsize(path_to_file)

# We can not use context manager here. Django close the file automatically:
# https://docs.djangoproject.com/en/5.1/ref/request-response/#fileresponse-objects
Expand Down

0 comments on commit 4e4cb62

Please sign in to comment.