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:
parent
c22a3ea0fc
commit
e6f310f517
3 changed files with 3 additions and 1 deletions
1
app.py
1
app.py
|
|
@ -39,6 +39,7 @@ DESTINATIONS = {
|
|||
'lille': 'Lille Europe',
|
||||
'amsterdam': 'Amsterdam Centraal',
|
||||
'rotterdam': 'Rotterdam Centraal',
|
||||
'cologne': 'Cologne Hbf',
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ DESTINATION_STATION_IDS = {
|
|||
'Lille Europe': '8722326',
|
||||
'Amsterdam Centraal': '8400058',
|
||||
'Rotterdam Centraal': '8400530',
|
||||
'Cologne Hbf': '8015458',
|
||||
}
|
||||
|
||||
_GATEWAY_URL = 'https://site-api.eurostar.com/gateway'
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@
|
|||
<span style="color:#00539f">{{ row.total_duration }}</span>
|
||||
{% endif %}
|
||||
{% 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 %}
|
||||
</td>
|
||||
{% else %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue