mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-09-17 16:52:47 +00:00
fix: return raw departure if start name == from_station (fixes min_duration)
This commit is contained in:
@@ -291,7 +291,7 @@ def get_trip_details(random_connection: dict | None) -> dict | None:
|
||||
trip_details["stops"][stop["name"]] = stop_details
|
||||
|
||||
if stop.get("name") == from_station:
|
||||
departure_time = parse_iso(stop["departure"])
|
||||
departure_time = stop["departure"]
|
||||
trip_details["departure"] = departure_time.strftime("%H:%M")
|
||||
|
||||
train_to_importance = legs["to"]["importance"]
|
||||
|
||||
Reference in New Issue
Block a user