Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

Commit 1e8a07d

Browse files
Merge pull request #100 from C4IROcean/bugs/ODP-1382-fix-list-cursor
odp-1382: fix cursor variable
2 parents ca806e6 + c7ec67b commit 1e8a07d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/sdk/odp/client/raw_storage_client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ def list(
6969
List of files in the dataset
7070
"""
7171

72+
cursor_next = None
7273
while True:
73-
page, cursor = self.list_paginated(resource_dto, metadata_filter=metadata_filter)
74+
page, cursor_next = self.list_paginated(resource_dto, metadata_filter=metadata_filter, cursor=cursor_next)
7475
yield from page
75-
if not cursor:
76+
if not cursor_next:
7677
break
7778

7879
def list_paginated(

0 commit comments

Comments
 (0)