Skip to content

Commit a973c70

Browse files
committed
Suggested changes
1 parent 96018f5 commit a973c70

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

python-lib/pagination.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,9 @@ def update_next_page(self, data, response_links=None):
6969
elif self.counting_key:
7070
extracted_data = get_value_from_path(data, self.counting_key.split("."), can_raise=False)
7171
if extracted_data:
72-
batch_size = len(get_value_from_path(data, self.counting_key.split("."), can_raise=False))
72+
batch_size = len(extracted_data)
7373
else:
7474
batch_size = 0
75-
if batch_size == 0:
7675
self.is_last_batch_empty = True
7776
else:
7877
batch_size = 1

0 commit comments

Comments
 (0)