Move holiday country codes to config.

This commit is contained in:
Edward Betts 2025-02-12 08:10:56 -05:00
parent 8c5b8400ca
commit c9e7f4c61a

View file

@ -156,24 +156,7 @@ def get_all(last_year: date, next_year: date, data_dir: str) -> list[Holiday]:
bank_holidays = agenda.uk_holiday.bank_holiday_list(last_year, next_year, data_dir)
holiday_list: list[Holiday] = bank_holidays + us_hols
for country in (
"at",
"be",
"br",
"ch",
"cz",
"de",
"dk",
"ee",
"es",
"fi",
"fr",
"gr",
"it",
"ke",
"nl",
"pl",
):
for country in flask.current_app.config["HOLIDAY_COUNTRIES"]:
holiday_list += get_holidays(country, last_year, next_year)
return holiday_list