Improve display of holidays
This commit is contained in:
parent
796edef75c
commit
aa612b94f0
|
@ -168,8 +168,11 @@ def combine_holidays(holidays: list[Holiday]) -> list[Event]:
|
||||||
sorted(country.upper() for country in all_countries - set(countries))
|
sorted(country.upper() for country in all_countries - set(countries))
|
||||||
)
|
)
|
||||||
|
|
||||||
title = f"{name} ({country_list})"
|
e = Event(
|
||||||
e = Event(name="holiday", date=d, title=title)
|
name="holiday",
|
||||||
|
date=d,
|
||||||
|
title=f"{name} ({country_list})" if country_list else name,
|
||||||
|
)
|
||||||
events.append(e)
|
events.append(e)
|
||||||
|
|
||||||
return events
|
return events
|
||||||
|
|
Loading…
Reference in a new issue