File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
services/api-server/src/simcore_service_api_server Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ async def list_jobs(
4949 """Lists all jobs for a user with pagination based on resource name prefix"""
5050
5151 pagination_kwargs = as_dict_exclude_none (
52- offset = pagination_offset , limit = pagination_limit
52+ pagination_offset = pagination_offset , pagination_limit = pagination_limit
5353 )
5454
5555 # 1. List projects marked as jobs
Original file line number Diff line number Diff line change 44from functools import partial
55from typing import cast
66
7+ from common_library .exclude import as_dict_exclude_none
78from fastapi import FastAPI
89from fastapi_pagination import create_page
910from models_library .api_schemas_api_server .functions import (
@@ -254,6 +255,10 @@ async def list_projects_marked_as_jobs(
254255 filter_by_job_parent_resource_name_prefix : str | None ,
255256 filter_any_custom_metadata : list [NameValueTuple ] | None ,
256257 ):
258+ pagination_kwargs = as_dict_exclude_none (
259+ offset = pagination_offset , limit = pagination_limit
260+ )
261+
257262 filters = ListProjectsMarkedAsJobRpcFilters (
258263 job_parent_resource_name_prefix = filter_by_job_parent_resource_name_prefix ,
259264 any_custom_metadata = (
@@ -270,9 +275,8 @@ async def list_projects_marked_as_jobs(
270275 rpc_client = self ._client ,
271276 product_name = product_name ,
272277 user_id = user_id ,
273- offset = pagination_offset ,
274- limit = pagination_limit ,
275278 filters = filters ,
279+ ** pagination_kwargs ,
276280 )
277281
278282 async def register_function (self , * , function : Function ) -> RegisteredFunction :
You can’t perform that action at this time.
0 commit comments