Drop MORNING_CUTOFF_HOUR, consider all services.
This commit is contained in:
parent
df94e822ae
commit
4e4202e220
2 changed files with 0 additions and 12 deletions
|
|
@ -205,9 +205,6 @@
|
|||
|
||||
<p style="margin-top:1rem;font-size:0.82rem;color:#718096">
|
||||
Paddington → St Pancras connection: {{ min_connection }}–{{ max_connection }} min.
|
||||
{% if unreachable_morning_services %}
|
||||
Morning means Eurostar departures before 12:00 from St Pancras.
|
||||
{% endif %}
|
||||
GWR walk-on single prices for Bristol Temple Meads → Paddington.
|
||||
Eurostar Standard prices are for 1 adult in GBP; always check
|
||||
<a href="{{ eurostar_url }}" target="_blank" rel="noopener">eurostar.com</a> to book.
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ from datetime import datetime, timedelta, time as _time
|
|||
MIN_CONNECTION_MINUTES = 50
|
||||
MAX_CONNECTION_MINUTES = 110
|
||||
MAX_GWR_MINUTES = 110
|
||||
MORNING_CUTOFF_HOUR = 12
|
||||
DATE_FMT = '%Y-%m-%d'
|
||||
TIME_FMT = '%H:%M'
|
||||
|
||||
|
|
@ -155,14 +154,6 @@ def find_unreachable_morning_eurostars(
|
|||
unreachable = []
|
||||
|
||||
for es in eurostar_trains:
|
||||
try:
|
||||
dep_stp = _parse_dt(travel_date, es['depart_st_pancras'])
|
||||
except (ValueError, KeyError):
|
||||
continue
|
||||
|
||||
if dep_stp.hour >= MORNING_CUTOFF_HOUR:
|
||||
continue
|
||||
|
||||
if any(
|
||||
_is_viable_connection(
|
||||
gwr,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue