mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-09-17 16:52:47 +00:00
fix: no attribute strftime
This commit is contained in:
@@ -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] = {
|
||||||
|
|||||||
Reference in New Issue
Block a user