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 8acb2ea commit ff96f71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions smbackend_turku/importers/divisions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
and modified to fit the WFS server of Turku.
"""

import os
import re
from datetime import datetime
Expand Down
12 changes: 6 additions & 6 deletions smbackend_turku/importers/geo_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ def save_page(self, results, municipality):
for result in results:
postal_code = result["postal_code_area"]["postal_code"]
if postal_code not in self.postal_code_areas_cache:
self.postal_code_areas_cache[
postal_code
] = self.get_or_create_postal_code_area(postal_code, result)
self.postal_code_areas_cache[postal_code] = (
self.get_or_create_postal_code_area(postal_code, result)
)

(
street_name_fi,
Expand Down Expand Up @@ -353,9 +353,9 @@ def enrich_page(self, results, municipality):

postal_code = result["postal_code_area"]["postal_code"]
if postal_code not in self.postal_code_areas_cache:
self.postal_code_areas_cache[
postal_code
] = self.get_or_create_postal_code_area(postal_code, result)
self.postal_code_areas_cache[postal_code] = (
self.get_or_create_postal_code_area(postal_code, result)
)
# name_sv is not added as there might be a swedish translation
street_entry = {
"name": street_name_fi,
Expand Down

0 comments on commit ff96f71

Please sign in to comment.