fix: consider all years in holiday list

This commit is contained in:
barredterra 2024-01-03 13:39:28 +01:00
parent 4415212a2d
commit 300aaa39fe

View File

@ -87,7 +87,7 @@ class HolidayList(Document):
for holiday_date, holiday_name in country_holidays(
self.country,
subdiv=self.subdivision,
years=[from_date.year, to_date.year],
years=list(range(from_date.year, to_date.year + 1)),
language=frappe.local.lang,
).items():
if holiday_date in existing_holidays: