avoid comments endless loop - check if query_response is always the same (#1347)
This commit is contained in:
@@ -133,6 +133,7 @@ class NodeIterator(Iterator[T]):
|
|||||||
return item
|
return item
|
||||||
if self._data['page_info']['has_next_page']:
|
if self._data['page_info']['has_next_page']:
|
||||||
query_response = self._query(self._data['page_info']['end_cursor'])
|
query_response = self._query(self._data['page_info']['end_cursor'])
|
||||||
|
if self._data['edges'] != query_response['edges']:
|
||||||
page_index, data = self._page_index, self._data
|
page_index, data = self._page_index, self._data
|
||||||
try:
|
try:
|
||||||
self._page_index = 0
|
self._page_index = 0
|
||||||
|
Reference in New Issue
Block a user