Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
juuso-j committed Apr 16, 2024
1 parent b0b58d6 commit cd63af0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions mobility_data/importers/bicycle_stands.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Note, bicycle stands are not imorter via the wfs importer
as it needs logic to derive if the stand is hull lockable or covered.
"""

import logging
import os

Expand Down
6 changes: 3 additions & 3 deletions mobility_data/importers/bike_service_stations.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ def __init__(self, feature):
# If no swedish address, retrieve it from the database.
if language == "sv":
street_name, number = addresses[0].split(" ")
self.address[
language
] = f"{get_street_name_translations(street_name, municipality)[language]} number"
self.address[language] = (
f"{get_street_name_translations(street_name, municipality)[language]} number"
)
# Source data does not contain English addresses, assign the Finnsh
else:
self.address[language] = addresses[0]
Expand Down
1 change: 1 addition & 0 deletions mobility_data/importers/marinas.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Note, wfs importer is not used as the berths data is
separately assigned to the marina mobile units.
"""

import logging

from django.conf import settings
Expand Down
6 changes: 3 additions & 3 deletions mobility_data/importers/share_car_parking_places.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def __init__(self, feature):
street_name["en"] = street_name["fi"]
self.extra[self.RESTRICTION_FIELD] = {}
for i, language in enumerate(LANGUAGES):
self.name[
language
] = f"{self.CAR_PARKING_NAME[language]}, {street_name[language]}"
self.name[language] = (
f"{self.CAR_PARKING_NAME[language]}, {street_name[language]}"
)
self.address[language] = street_name[language]
self.extra[self.RESTRICTION_FIELD][language] = restrictions[i].strip()

Expand Down

0 comments on commit cd63af0

Please sign in to comment.