Skip to content

Commit

Permalink
#161 - Fix set the required config keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Judith committed Nov 25, 2024
1 parent 4a606f9 commit fe351a5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/parkapi_sources/converters/kienzler/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ class KienzlerBasePullConverter(PullConverter, StaticGeojsonDataMixin):
def config_prefix(self):
pass

required_config_keys = [
f'PARK_API_KIENZLER_{config_prefix}_USER',
f'PARK_API_KIENZLER_{config_prefix}_PASSWORD',
f'PARK_API_KIENZLER_{config_prefix}_IDS',
]
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.required_config_keys = [
f'PARK_API_KIENZLER_{self.config_prefix}_USER',
f'PARK_API_KIENZLER_{self.config_prefix}_PASSWORD',
f'PARK_API_KIENZLER_{self.config_prefix}_IDS',
]

def get_static_parking_sites(self) -> tuple[list[StaticParkingSiteInput], list[ImportParkingSiteException]]:
kienzler_parking_sites, static_parking_site_errors = self._get_kienzler_parking_sites()
Expand Down

0 comments on commit fe351a5

Please sign in to comment.