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)
|
bank_holidays = agenda.uk_holiday.bank_holiday_list(last_year, next_year, data_dir)
|
||||||
|
|
||||||
holiday_list: list[Holiday] = bank_holidays + us_hols
|
holiday_list: list[Holiday] = bank_holidays + us_hols
|
||||||
for country in (
|
for country in flask.current_app.config["HOLIDAY_COUNTRIES"]:
|
||||||
"at",
|
|
||||||
"be",
|
|
||||||
"br",
|
|
||||||
"ch",
|
|
||||||
"cz",
|
|
||||||
"de",
|
|
||||||
"dk",
|
|
||||||
"ee",
|
|
||||||
"es",
|
|
||||||
"fi",
|
|
||||||
"fr",
|
|
||||||
"gr",
|
|
||||||
"it",
|
|
||||||
"ke",
|
|
||||||
"nl",
|
|
||||||
"pl",
|
|
||||||
):
|
|
||||||
holiday_list += get_holidays(country, last_year, next_year)
|
holiday_list += get_holidays(country, last_year, next_year)
|
||||||
|
|
||||||
return holiday_list
|
return holiday_list
|
||||||
|
|
Loading…
Reference in a new issue