Skip to content

Commit

Permalink
fix: consider all years in holiday list
Browse files Browse the repository at this point in the history
(cherry picked from commit 300aaa3)
  • Loading branch information
barredterra authored and mergify[bot] committed Jan 11, 2024
1 parent db3cb5c commit 3180266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/setup/doctype/holiday_list/holiday_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_local_holidays(self):
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:
Expand Down

0 comments on commit 3180266

Please sign in to comment.