Skip to content

Commit

Permalink
Defaults RangePaginator to stop after having received an empty page
Browse files Browse the repository at this point in the history
  • Loading branch information
willi-mueller committed Aug 9, 2024
1 parent 8b4fc8c commit 8d4ffa9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dlt/sources/helpers/rest_client/paginators.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(
maximum_value: Optional[int] = None,
total_path: Optional[jsonpath.TJsonPath] = None,
error_message_items: str = "items",
stop_after_empty_page: bool = False,
stop_after_empty_page: bool = True,
):
"""
Args:
Expand Down Expand Up @@ -237,7 +237,7 @@ def __init__(
page_param: str = "page",
total_path: jsonpath.TJsonPath = "total",
maximum_page: Optional[int] = None,
stop_after_empty_page: bool = False,
stop_after_empty_page: bool = True,
):
"""
Args:
Expand Down Expand Up @@ -340,7 +340,7 @@ def __init__(
limit_param: str = "limit",
total_path: jsonpath.TJsonPath = "total",
maximum_offset: Optional[int] = None,
stop_after_empty_page: bool = False,
stop_after_empty_page: bool = True,
) -> None:
"""
Args:
Expand Down

0 comments on commit 8d4ffa9

Please sign in to comment.