Skip to content

Commit

Permalink
fix: wrongly detect page
Browse files Browse the repository at this point in the history
  • Loading branch information
amatmv committed Mar 9, 2023
1 parent d739af0 commit 738ee1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyakeneo/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_page_items(self):

def fetch_next_page(self):
"""Return True if a next page exists. Returns False otherwise."""
if self.is_paginated(self._items) and self._link_next:
if self._link_next:
response = self._session.get(self._link_next)
if response.ok:
next_page = Result.parse_page(json.loads(response.text))
Expand Down

0 comments on commit 738ee1c

Please sign in to comment.