From b184e27a63e953ccaa30865ddc67d41f5e5c0a31 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Thu, 21 May 2026 14:47:33 +0100 Subject: [PATCH] Show per-direction service counts for return journeys MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace the combined "70 NR ยท 36 Eurostar" summary with separate outbound/return lines so it's clear which counts belong to which leg. Co-Authored-By: Claude Sonnet 4.6 --- templates/results.html | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/templates/results.html b/templates/results.html index 067a1e7..2b39f46 100644 --- a/templates/results.html +++ b/templates/results.html @@ -423,9 +423,18 @@ }

- {{ gwr_count }} National Rail service{{ 's' if gwr_count != 1 }} -  ·  - {{ eurostar_count }} Eurostar service{{ 's' if eurostar_count != 1 }} + {% if journey_type == 'return' %} + {% for section in sections %} + {% if section.direction == 'outbound' %}Outbound{% else %}Return{% endif %}: + {{ section.gwr_count }} National Rail service{{ 's' if section.gwr_count != 1 }}, + {{ section.eurostar_count }} Eurostar service{{ 's' if section.eurostar_count != 1 }} + {% if not loop.last %} · {% endif %} + {% endfor %} + {% else %} + {{ gwr_count }} National Rail service{{ 's' if gwr_count != 1 }} +  ·  + {{ eurostar_count }} Eurostar service{{ 's' if eurostar_count != 1 }} + {% endif %} {% if from_cache %}  ·  (cached) {% endif %}