Skip to content

Commit 721a489

Browse files
authored
Fix issue with start_index reset (#838)
* Fix issue with start_index reset * start_index is not actually required in _get_generator as it's not used
1 parent 02c3c57 commit 721a489

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

atlassian/bamboo.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ def _get_generator(
4141
:param path: URI for the resource
4242
:return: generator with the contents of response[elements_key][element_key]
4343
"""
44-
start_index = 0
45-
params["start-index"] = start_index
4644
response = self.get(path, data, flags, params, headers)
4745
if self.advanced_mode:
4846
try:
@@ -60,7 +58,6 @@ def _get_generator(
6058
for r in results[element_key]:
6159
size += 1
6260
yield r
63-
start_index += results["max-result"]
6461
except TypeError:
6562
logging.error("Broken response: {}".format(response))
6663
yield response

0 commit comments

Comments
 (0)