From 738ee1c1385c6bb330c75aadf0cd797773cbb016 Mon Sep 17 00:00:00 2001 From: Amat Martinez Vila Date: Thu, 9 Mar 2023 14:59:24 +0100 Subject: [PATCH] fix: wrongly detect page --- pyakeneo/result.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyakeneo/result.py b/pyakeneo/result.py index 20eb9a0..f0fb8e6 100644 --- a/pyakeneo/result.py +++ b/pyakeneo/result.py @@ -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))