fix: no attribute strftime

This commit is contained in:
Kaaninchen
2026-08-20 22:29:46 +02:00
parent 62d5569bcc
commit 8dfa092229
+2 -2
View File
@@ -291,8 +291,8 @@ def get_trip_details(random_connection: dict | None) -> dict | None:
trip_details["stops"][stop["name"]] = stop_details trip_details["stops"][stop["name"]] = stop_details
if stop.get("name") == from_station: if stop.get("name") == from_station:
departure_time = stop["departure"] departure_time_iso = stop["departure"]
trip_details["departure"] = departure_time.strftime("%H:%M") trip_details["departure"] = parse_iso(departure_time_iso).strftime("%H:%M")
train_to_importance = legs["to"]["importance"] train_to_importance = legs["to"]["importance"]
trip_details["stops"][goes_to] = { trip_details["stops"][goes_to] = {