Skip to content

Commit

Permalink
fix: consider all years in holiday list
Browse files Browse the repository at this point in the history
  • Loading branch information
barredterra committed Jan 3, 2024
1 parent 4415212 commit 300aaa3
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 @@ -87,7 +87,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 300aaa3

Please sign in to comment.