Skip to content

Commit

Permalink
revert files.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bisgaard-itis committed Nov 7, 2024
1 parent 1f4eb8a commit 80ba918
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ async def upload_file(
request: Request,
file: Annotated[UploadFile, FileParam(...)],
user_id: Annotated[int, Depends(get_current_user_id)],
content_length: str = Header(None), # TODO: should be nullable
content_length: str | None = Header(None),
):
"""Uploads a single file to the system"""
# TODO: For the moment we upload file here and re-upload to S3
Expand Down Expand Up @@ -297,8 +297,8 @@ async def search_files_page(
storage_client: Annotated[StorageApi, Depends(get_api_client(StorageApi))],
user_id: Annotated[int, Depends(get_current_user_id)],
page_params: Annotated[PaginationParams, Depends()],
sha256_checksum: SHA256Str = None, # TODO should be nullable
file_id: UUID = None, # TODO should be nullable
sha256_checksum: SHA256Str | None = None,
file_id: UUID | None = None,
):
"""Search files"""
stored_files: list[StorageFileMetaData] = await storage_client.search_owned_files(
Expand Down

0 comments on commit 80ba918

Please sign in to comment.