Skip to content

Commit

Permalink
Merge pull request #223 from OnroerendErfgoed/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
claeyswo committed May 15, 2023
2 parents 20e22c9 + 4b0983c commit 65b49d5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.2.3 (15-05-2023)
------------------

- Limiet van list op 1000 items (#221)

1.2.2 (09-05-2023)
------------------

Expand Down
6 changes: 5 additions & 1 deletion crabpy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 65b49d5

Please sign in to comment.