Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tableauserverclient/server/pager.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ def __iter__(self):
# Fetch the first page
current_item_list, last_pagination_item = self._endpoint(self._options)

if last_pagination_item.total_available is None:
# This endpoint does not support pagination, drain the list and return
while current_item_list:
yield current_item_list.pop(0)

return

# Get the rest on demand as a generator
while self._count < last_pagination_item.total_available:
if len(current_item_list) == 0:
Expand Down