fix: consider all years in holiday list

(cherry picked from commit 300aaa39fe)
This commit is contained in:
barredterra 2024-01-03 13:39:28 +01:00 committed by Mergify
parent b748095589
commit 21eed78fa1

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: