Skip to content

Commit

Permalink
Fix paginator issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-mairose-sp committed Oct 25, 2023
1 parent ffbe49e commit 4fec233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sailpoint/paginator.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ def paginate(T, result_limit, **kwargs) -> T:

# If the total result limit is not provided, set a default of 1000 records to fetch.
result_limit = result_limit if result_limit else 1000
increment = kwargs['limit'] if hasattr(kwargs, 'limit') is not None else 250
kwargs['offset'] = kwargs['offset'] if hasattr(kwargs, 'offset') is not None else 0
increment = kwargs.get('limit') if kwargs.get('limit') is not None else 250
kwargs['offset'] = kwargs.get('offset') if kwargs.get('offset') is not None else 0

modified = []
while True:
Expand Down

0 comments on commit 4fec233

Please sign in to comment.