Skip to content

Commit

Permalink
Merge pull request #85 from ParkenDD/fix-bfrk-is_covered
Browse files Browse the repository at this point in the history
fix bfrk is_covered
  • Loading branch information
the-infinity authored Jul 25, 2024
2 parents 057915f + 512600c commit 48fcd97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/parkapi_sources/converters/bfrk_bw/bike_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 2 additions & 2 deletions src/parkapi_sources/converters/bfrk_bw/bike_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ 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()

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
Expand Down

0 comments on commit 48fcd97

Please sign in to comment.