From aa612b94f020074fbe32bee61d737b8484af481f Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 15 Dec 2023 12:03:58 +0000 Subject: [PATCH] Improve display of holidays --- agenda/data.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/agenda/data.py b/agenda/data.py index 8e3135f..a1d28c7 100644 --- a/agenda/data.py +++ b/agenda/data.py @@ -168,8 +168,11 @@ def combine_holidays(holidays: list[Holiday]) -> list[Event]: sorted(country.upper() for country in all_countries - set(countries)) ) - title = f"{name} ({country_list})" - e = Event(name="holiday", date=d, title=title) + e = Event( + name="holiday", + date=d, + title=f"{name} ({country_list})" if country_list else name, + ) events.append(e) return events