Skip to content

Commit aa0e28d

Browse files
committed
fixed
1 parent 00333c0 commit aa0e28d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

services/storage/src/simcore_service_storage/modules/db/file_meta_data.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import contextlib
22
import datetime
3-
from collections.abc import AsyncGenerator, Iterable
3+
from collections.abc import AsyncGenerator
44
from pathlib import Path
55
from typing import TypeAlias
66

@@ -173,16 +173,16 @@ async def try_get_directory(
173173

174174

175175
class 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

182182
async 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,

0 commit comments

Comments
 (0)