Skip to content

Commit e2da52e

Browse files
committed
fix some issue with the offset
1 parent 1359a2d commit e2da52e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

infrahub_sdk/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ async def filters(
790790
async def process_page(page_offset: int, page_number: int) -> tuple[dict, ProcessRelationsNode]:
791791
"""Process a single page of results."""
792792
query_data = await InfrahubNode(client=self, schema=schema, branch=branch).generate_query_data(
793-
offset=offset or page_offset,
793+
offset=page_offset if offset is None else offset,
794794
limit=limit or pagination_size,
795795
filters=filters,
796796
include=include,
@@ -1954,7 +1954,7 @@ def filters(
19541954
def process_page(page_offset: int, page_number: int) -> tuple[dict, ProcessRelationsNodeSync]:
19551955
"""Process a single page of results."""
19561956
query_data = InfrahubNodeSync(client=self, schema=schema, branch=branch).generate_query_data(
1957-
offset=offset or page_offset,
1957+
offset=page_offset if offset is None else offset,
19581958
limit=limit or pagination_size,
19591959
filters=filters,
19601960
include=include,

0 commit comments

Comments
 (0)