From cb03fa6d94139b4a78d06e9680f9168b50a75470 Mon Sep 17 00:00:00 2001 From: Maximilian Jugl Date: Fri, 17 May 2024 14:44:35 +0200 Subject: [PATCH] feat: move client ID retrieval in GET `intermediate` to path definition --- project/routers/intermediate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project/routers/intermediate.py b/project/routers/intermediate.py index ce611fa..00bb906 100644 --- a/project/routers/intermediate.py +++ b/project/routers/intermediate.py @@ -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)], ):