From 2f554b9ca01f47d5b3309377a4e1cc4ab8342690 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 21 May 2026 18:48:14 +0100 Subject: [PATCH] Relabel inbound circle line services: Circle (aim for) and next (fallback) Consistent with outbound labelling. The first service is the one to aim for if the Eurostar arrives slightly early; the second is dimmed as it may not leave enough time for the GWR connection. Co-Authored-By: Claude Sonnet 4.6 --- templates/results.html | 4 ++-- tests/test_app.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/results.html b/templates/results.html index df0e7c9..6fa0c57 100644 --- a/templates/results.html +++ b/templates/results.html @@ -545,8 +545,8 @@ {% if row.circle_services | length > 1 %} {% set c_early = row.circle_services[0] %} {% set c = row.circle_services[1] %} -
earlier {{ c_early.depart }} → PAD {{ c_early.arrive_pad }} · £{{ "%.2f"|format(c_early.fare) }} -
Circle {{ c.depart }} → PAD {{ c.arrive_pad }} · £{{ "%.2f"|format(c.fare) }} +
Circle {{ c_early.depart }} → PAD {{ c_early.arrive_pad }} · £{{ "%.2f"|format(c_early.fare) }} +
next {{ c.depart }} → PAD {{ c.arrive_pad }} {% else %} {% set c = row.circle_services[0] %}
Circle {{ c.depart }} → PAD {{ c.arrive_pad }} · £{{ "%.2f"|format(c.fare) }} diff --git a/tests/test_app.py b/tests/test_app.py index 74d2bfa..7a19613 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -629,8 +629,8 @@ def test_results_return_renders_outbound_and_inbound_tables(monkeypatch): assert 'return_date=2026-04-17' not in html assert 'Circle 09:10 → KX 09:25' in html assert 'next 09:15 → KX 09:30' in html - assert 'earlier 16:40 → PAD 16:55' in html - assert 'Circle 16:45 → PAD 17:00' in html + assert 'Circle 16:40 → PAD 16:55' in html + assert 'next 16:45 → PAD 17:00' in html assert 'title="Tight connection">⚠️' in html assert 'ES 9014' in html assert 'ES 9035' in html