Show all valid Eurostar connections

This commit is contained in:
Edward Betts 2026-07-06 13:25:18 +01:00
parent 5272956050
commit c9aad7ad4c
2 changed files with 28 additions and 8 deletions

View file

@ -179,7 +179,6 @@ def combine_trips(
trips = []
for gwr in gwr_trains:
# Find only the earliest viable Eurostar for this GWR departure
for es in eurostar_trains:
connection = _is_viable_connection(
gwr,
@ -223,7 +222,6 @@ def combine_trips(
"ticket_code": fare["code"] if fare else None,
}
)
break # Only the earliest valid Eurostar per GWR departure
trips.sort(key=lambda t: (t["depart_bristol"], t["depart_st_pancras"]))
return trips
@ -289,7 +287,6 @@ def combine_inbound_trips(
"ticket_code": fare["code"] if fare else None,
}
)
break
trips.sort(key=lambda t: (t["depart_destination"], t["depart_paddington"]))
return trips