Skip to content

Commit ca93499

Browse files
committed
fix
1 parent 7018c12 commit ca93499

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

park_api/cities/Jena.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ def parse_html(lot_vacancy_xml):
3838
and _lot.parkingFacilityReference.attrs["id"] == lot["general"]["name"]
3939
]
4040

41-
id = lot["general"]["name"].lower().replace(" ", "-").replace("ä", "ae").replace("ö", "oe").replace("ü", "ue").replace("ß", "ss")
41+
lot_id = lot["general"]["name"].lower().replace(" ", "-").replace("ä", "ae").replace("ö", "oe").replace("ü", "ue").replace("ß", "ss")
4242

4343
lot_info = {
44-
"id": lot["general"]["name"],
44+
"id": lot_id,
4545
"name": lot["general"]["name"],
46-
"url": "https://mobilitaet.jena.de/de/" + id,
46+
"url": "https://mobilitaet.jena.de/de/" + lot_id,
4747
"address": lot["details"]["parkingPlaceAddress"]["parkingPlaceAddress"],
4848
"coords": lot["general"]["coordinates"],
4949
"state": get_status(lot),

0 commit comments

Comments
 (0)