Add Cologne Hbf destination; use coin emoji for cheapest journey

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Edward Betts 2026-04-04 15:02:01 +01:00
parent c22a3ea0fc
commit e6f310f517
3 changed files with 3 additions and 1 deletions

1
app.py
View file

@ -39,6 +39,7 @@ DESTINATIONS = {
'lille': 'Lille Europe', 'lille': 'Lille Europe',
'amsterdam': 'Amsterdam Centraal', 'amsterdam': 'Amsterdam Centraal',
'rotterdam': 'Rotterdam Centraal', 'rotterdam': 'Rotterdam Centraal',
'cologne': 'Cologne Hbf',
} }

View file

@ -24,6 +24,7 @@ DESTINATION_STATION_IDS = {
'Lille Europe': '8722326', 'Lille Europe': '8722326',
'Amsterdam Centraal': '8400058', 'Amsterdam Centraal': '8400058',
'Rotterdam Centraal': '8400530', 'Rotterdam Centraal': '8400530',
'Cologne Hbf': '8015458',
} }
_GATEWAY_URL = 'https://site-api.eurostar.com/gateway' _GATEWAY_URL = 'https://site-api.eurostar.com/gateway'

View file

@ -185,7 +185,7 @@
<span style="color:#00539f">{{ row.total_duration }}</span> <span style="color:#00539f">{{ row.total_duration }}</span>
{% endif %} {% endif %}
{% if row.total_price is not none %} {% if row.total_price is not none %}
<br><span style="font-size:0.8rem;font-weight:700;color:#276749">£{{ "%.2f"|format(row.total_price) }}{% if min_price is defined and max_price is defined %}{% if row.total_price <= min_price + 10 %} <span title="Cheapest journey">💰</span>{% elif row.total_price >= max_price - 10 %} <span title="Most expensive journey">💸</span>{% endif %}{% endif %}</span> <br><span style="font-size:0.8rem;font-weight:700;color:#276749">£{{ "%.2f"|format(row.total_price) }}{% if min_price is defined and max_price is defined %}{% if row.total_price <= min_price + 10 %} <span title="Cheapest journey">🪙</span>{% elif row.total_price >= max_price - 10 %} <span title="Most expensive journey">💸</span>{% endif %}{% endif %}</span>
{% endif %} {% endif %}
</td> </td>
{% else %} {% else %}