From 512600c6a4919b9e3f42f0b2bd54703bc0eeb417 Mon Sep 17 00:00:00 2001 From: Ernesto Ruge Date: Thu, 25 Jul 2024 08:32:36 +0200 Subject: [PATCH] fix bfrk is_covered --- src/parkapi_sources/converters/bfrk_bw/bike_converter.py | 2 +- src/parkapi_sources/converters/bfrk_bw/bike_models.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parkapi_sources/converters/bfrk_bw/bike_converter.py b/src/parkapi_sources/converters/bfrk_bw/bike_converter.py index 9bff301..77ae81d 100644 --- a/src/parkapi_sources/converters/bfrk_bw/bike_converter.py +++ b/src/parkapi_sources/converters/bfrk_bw/bike_converter.py @@ -25,7 +25,7 @@ class BfrkBwBikePushConverter(BfrkBasePushConverter, ABC): 'Stellplatzanzahl': 'capacity', 'beleuchtet': 'has_lighting', 'kostenpflichtig': 'has_fee', - 'ueberdacht': 'has_roof', + 'ueberdacht': 'is_covered', 'HST_DHID': 'identifier_dhid', 'OSM_ID': 'identifier_osm', 'Anlage_Foto': 'photo_url', diff --git a/src/parkapi_sources/converters/bfrk_bw/bike_models.py b/src/parkapi_sources/converters/bfrk_bw/bike_models.py index e02e5cd..1d39ff4 100644 --- a/src/parkapi_sources/converters/bfrk_bw/bike_models.py +++ b/src/parkapi_sources/converters/bfrk_bw/bike_models.py @@ -40,7 +40,7 @@ def to_parking_site_type(self) -> ParkingSiteType: @validataclass class BfrkBikeRowInput(BfrkBaseRowInput): type: BfrkBikeType = EnumValidator(BfrkBikeType) - has_roof: Optional[bool] = ExcelNoneable(GermanMappedBooleanValidator()) + is_covered: Optional[bool] = ExcelNoneable(GermanMappedBooleanValidator()) has_fee: bool = GermanMappedBooleanValidator() has_lighting: bool = GermanMappedBooleanValidator() @@ -48,7 +48,7 @@ def to_static_parking_site_input(self) -> StaticParkingSiteInput: static_parking_site_input = super().to_static_parking_site_input() static_parking_site_input.type = self.type.to_parking_site_type() - static_parking_site_input.has_roof = self.has_roof + static_parking_site_input.is_covered = self.is_covered static_parking_site_input.has_fee = self.has_fee static_parking_site_input.has_lighting = self.has_lighting static_parking_site_input.purpose = PurposeType.BIKE