Skip to content

Commit

Permalink
feat: move client ID retrieval in GET intermediate to path definition
Browse files Browse the repository at this point in the history
  • Loading branch information
mjugl committed May 17, 2024
1 parent 5442928 commit cb03fa6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion project/routers/intermediate.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ async def submit_intermediate_result_to_hub(
"/{object_id}",
summary="Get intermediate result as file to Hub",
operation_id="getIntermediateResult",
# client id is not actually used here but required for auth. having this
# as a path dependency makes pycharm stop complaining about unused params.
dependencies=[Depends(get_client_id)],
)
async def retrieve_intermediate_result_from_hub(
client_id: Annotated[str, Depends(get_client_id)],
object_id: uuid.UUID,
api_client: Annotated[FlameHubClient, Depends(get_api_client)],
):
Expand Down

0 comments on commit cb03fa6

Please sign in to comment.