diff --git a/CHANGES.rst b/CHANGES.rst index 0a6caf6..be29ae4 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -1,3 +1,8 @@ +1.2.3 (15-05-2023) +------------------ + +- Limiet van list op 1000 items (#221) + 1.2.2 (09-05-2023) ------------------ diff --git a/crabpy/client.py b/crabpy/client.py index 69057ce..ec0efd2 100644 --- a/crabpy/client.py +++ b/crabpy/client.py @@ -69,8 +69,12 @@ def _get_list(self, url, response_key, params=None): response = {"volgende": f"{self.base_url}{url}"} try: while "volgende" in response: + url = response["volgende"] + # Originele params komen mee in de volgende url vanaf 2de request + if "?" in url: + params = None response = self.session.get( - response["volgende"], + url, params=params, headers=self.v2_header if "v2" in url else self.v1_header, ) diff --git a/setup.py b/setup.py index 8f50041..6bb20b2 100755 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ setup( name="crabpy", - version="1.2.2", + version="1.2.3", description="Interact with geographical webservices by Informatie Vlaanderen.", long_description=open("README.rst").read() + "\n\n" + open("CHANGES.rst").read(), author="Onroerend Erfgoed",