Move holiday country codes to config.
This commit is contained in:
parent
8c5b8400ca
commit
c9e7f4c61a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue