Skip to content

Commit

Permalink
⬆️ Update dependency hamburg to v3 (#424)
Browse files Browse the repository at this point in the history
* ⬆️ Update dependency hamburg to v3

* Change bulk parameter to limit

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Klaas Schoute <[email protected]>
  • Loading branch information
renovate[bot] and klaasnicolaas authored Dec 31, 2023
1 parent 83d3c05 commit 11ab3cc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
6 changes: 3 additions & 3 deletions app/cities/germany/hamburg.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ def __init__(self) -> None:
geo_code="DE-HH",
phone_code="040",
)
self.bulk = "true"
self.limit = 40

async def async_get_locations(self) -> ParkAndRide:
"""Get parking data from API.
Args:
----
bulk (str): Get all data in one request.
limit (int): Number of garages to retrieve.
"""
async with UDPHamburg() as client:
parking: ParkAndRide = await client.park_and_rides(bulk=self.bulk)
parking: ParkAndRide = await client.park_and_rides(limit=self.limit)
print(f"{self.name} - data has been retrieved")
return parking

Expand Down
20 changes: 15 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ python-dotenv = "^1.0.0"
pytz = "^2023.3"

[tool.poetry.group.cities.dependencies]
hamburg = "^1.0.1"
hamburg = "^3.0.0"
odp-amsterdam = "^5.1.1"

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit 11ab3cc

Please sign in to comment.