File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
services/storage/src/simcore_service_storage/modules/db Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11import contextlib
22import datetime
3- from collections .abc import AsyncGenerator , Iterable
3+ from collections .abc import AsyncGenerator
44from pathlib import Path
55from typing import TypeAlias
66
@@ -173,16 +173,16 @@ async def try_get_directory(
173173
174174
175175class PathsCursorParameters (BaseModel ):
176- offset : int = 0
176+ offset : int
177177 file_prefix : Path | None
178- project_ids : Iterable [ProjectID ] | None
178+ project_ids : list [ProjectID ] | None
179179 partial : bool
180180
181181
182182async def list_child_paths (
183183 conn : AsyncConnection ,
184184 * ,
185- filter_by_project_ids : Iterable [ProjectID ] | None ,
185+ filter_by_project_ids : list [ProjectID ] | None ,
186186 filter_by_file_prefix : Path | None ,
187187 cursor : GenericCursor | None ,
188188 limit : int ,
@@ -196,6 +196,7 @@ async def list_child_paths(
196196 cursor_params = PathsCursorParameters .model_validate_json (cursor )
197197 else :
198198 cursor_params = PathsCursorParameters (
199+ offset = 0 ,
199200 file_prefix = filter_by_file_prefix ,
200201 project_ids = filter_by_project_ids ,
201202 partial = is_partial_prefix ,
You can’t perform that action at this time.
0 commit comments