diff --git a/app.py b/app.py index 6425e79..a5a60cb 100644 --- a/app.py +++ b/app.py @@ -39,6 +39,7 @@ DESTINATIONS = { 'lille': 'Lille Europe', 'amsterdam': 'Amsterdam Centraal', 'rotterdam': 'Rotterdam Centraal', + 'cologne': 'Cologne Hbf', } diff --git a/scraper/eurostar.py b/scraper/eurostar.py index ca489d9..8b9a881 100644 --- a/scraper/eurostar.py +++ b/scraper/eurostar.py @@ -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' diff --git a/templates/results.html b/templates/results.html index e4578ec..6d3b2b9 100644 --- a/templates/results.html +++ b/templates/results.html @@ -185,7 +185,7 @@ {{ row.total_duration }} {% endif %} {% if row.total_price is not none %} -
£{{ "%.2f"|format(row.total_price) }}{% if min_price is defined and max_price is defined %}{% if row.total_price <= min_price + 10 %} 💰{% elif row.total_price >= max_price - 10 %} 💸{% endif %}{% endif %} +
£{{ "%.2f"|format(row.total_price) }}{% if min_price is defined and max_price is defined %}{% if row.total_price <= min_price + 10 %} 🪙{% elif row.total_price >= max_price - 10 %} 💸{% endif %}{% endif %} {% endif %} {% else %}