diff --git a/agenda/types.py b/agenda/types.py index e4bd7e4..be5232f 100644 --- a/agenda/types.py +++ b/agenda/types.py @@ -59,7 +59,9 @@ class TripElement: def airport_label(airport: StrDict) -> str: """Airport label: name and iata.""" name = airport.get("alt_name") or airport["city"] - return f"{name} ({airport['iata']})" + country = agenda.get_country(airport["country"]) + assert country and country.flag + return f"{name} ({airport['iata']}) {country.flag}" @dataclass diff --git a/templates/trip/list.html b/templates/trip/list.html index a117384..07dad88 100644 --- a/templates/trip/list.html +++ b/templates/trip/list.html @@ -152,16 +152,13 @@ {% set date_heading = None %} {% for day, elements in trip.elements_grouped_by_day() %}