fix: formatting (black)
Some checks failed
Backend CI / lint-and-test (push) Failing after 1m54s

This commit is contained in:
2025-10-11 21:58:32 +02:00
parent f9086d2d04
commit c35049cd54
7 changed files with 69 additions and 50 deletions

View File

@@ -98,14 +98,12 @@ def normalize_station_elements(
if not name:
continue
raw_code = tags.get("ref") or tags.get(
"railway:ref") or tags.get("local_ref")
raw_code = tags.get("ref") or tags.get("railway:ref") or tags.get("local_ref")
code = str(raw_code) if raw_code is not None else None
elevation_tag = tags.get("ele") or tags.get("elevation")
try:
elevation = float(
elevation_tag) if elevation_tag is not None else None
elevation = float(elevation_tag) if elevation_tag is not None else None
except (TypeError, ValueError):
elevation = None