File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
services/api-server/src/simcore_service_api_server Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ async def get_licensed_items(
2828 page_params : Annotated [PaginationParams , Depends ()],
2929 web_api_rpc : Annotated [WbApiRpcClient , Depends (get_wb_api_rpc_client )],
3030 product_name : Annotated [str , Depends (get_product_name )],
31- ) -> Page [ LicensedItemGet ] :
31+ ):
3232 return await web_api_rpc .get_licensed_items (
3333 product_name = product_name , page_params = page_params
3434 )
Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ async def _page_projects(
197197 with service_exception_handler (
198198 service_name = "Webserver" ,
199199 http_status_map = {status .HTTP_404_NOT_FOUND : ListJobsError },
200+ rpc_exception_map = {},
200201 ):
201202 resp = await self .client .get (
202203 "/projects" ,
Original file line number Diff line number Diff line change 11from dataclasses import dataclass
22from functools import partial
3+ from typing import cast
34
45from fastapi import FastAPI
56from fastapi_pagination import Page , create_page
@@ -29,7 +30,7 @@ async def get_licensed_items(
2930 offset = page_params .offset ,
3031 limit = page_params .limit ,
3132 )
32- return create_page (
33+ page = create_page (
3334 [
3435 LicensedItemGet (
3536 licensed_item_id = elm .licensed_item_id ,
@@ -44,6 +45,7 @@ async def get_licensed_items(
4445 total = licensed_items_page .total ,
4546 params = page_params ,
4647 )
48+ return cast (Page [LicensedItemGet ], page )
4749
4850
4951def setup (app : FastAPI , rabbitmq_rmp_client : RabbitMQRPCClient ):
You can’t perform that action at this time.
0 commit comments