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 (
@@ -253,6 +254,10 @@ async def list_projects_marked_as_jobs(
253254 filter_by_job_parent_resource_name_prefix : str | None ,
254255 filter_any_custom_metadata : list [NameValueTuple ] | None ,
255256 ):
257+ pagination_kwargs = as_dict_exclude_none (
258+ offset = pagination_offset , limit = pagination_limit
259+ )
260+
256261 filters = ListProjectsMarkedAsJobRpcFilters (
257262 job_parent_resource_name_prefix = filter_by_job_parent_resource_name_prefix ,
258263 any_custom_metadata = (
@@ -269,9 +274,8 @@ async def list_projects_marked_as_jobs(
269274 rpc_client = self ._client ,
270275 product_name = product_name ,
271276 user_id = user_id ,
272- offset = pagination_offset ,
273- limit = pagination_limit ,
274277 filters = filters ,
278+ ** pagination_kwargs ,
275279 )
276280
277281 async def register_function (self , * , function : Function ) -> RegisteredFunction :
You can’t perform that action at this time.
0 commit comments