diff --git a/agenda/types.py b/agenda/types.py index 81813a5..6e9cf65 100644 --- a/agenda/types.py +++ b/agenda/types.py @@ -418,8 +418,8 @@ class Trip: if item["type"] == "bus": # Include bus journeys in trip elements - from_country = agenda.get_country(item["from_stop"]["country"]) - to_country = agenda.get_country(item["to_stop"]["country"]) + from_country = agenda.get_country(item["from_station"]["country"]) + to_country = agenda.get_country(item["to_station"]["country"]) name = f"{item['from']} → {item['to']}" elements.append( TripElement(