Skip to content

Commit

Permalink
Merge pull request #255 from OnroerendErfgoed/feature/254_status
Browse files Browse the repository at this point in the history
Fixes #254
  • Loading branch information
claeyswo authored Nov 8, 2024
2 parents 49d194e + ee6e47b commit d581813
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crabpy/gateway/adressenregister.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.. versionadded:: 0.14.0
"""

import json
import logging
import os
Expand Down Expand Up @@ -376,7 +377,7 @@ def get_deelgemeente_by_id(self, deelgemeente_id):
)

@LONG_CACHE.cache_on_arguments()
def list_straten(self, gemeente, include_homoniem=False):
def list_straten(self, gemeente, include_homoniem=False, status=None):
"""
List all `straten` in a `Gemeente`.
Expand All @@ -390,7 +391,9 @@ def list_straten(self, gemeente, include_homoniem=False):
return []
return [
Straat.from_list_response(straat, self, include_homoniem)
for straat in self.client.get_straatnamen(niscode=gemeente.niscode)
for straat in self.client.get_straatnamen(
niscode=gemeente.niscode, status=status
)
]

@LONG_CACHE.cache_on_arguments()
Expand Down

0 comments on commit d581813

Please sign in to comment.