fix(UX): Store weekly off at the end of holiday list (#53833)

Perhaps these two should be stored separately too?
This commit is contained in:
Ankush Menat
2026-03-30 21:28:40 +05:30
committed by GitHub
parent 28ac0effff
commit f97877a60a

View File

@@ -109,7 +109,7 @@ class HolidayList(Document):
)
def sort_holidays(self):
self.holidays.sort(key=lambda x: getdate(x.holiday_date))
self.holidays.sort(key=lambda x: (x.weekly_off, getdate(x.holiday_date)))
for i in range(len(self.holidays)):
self.holidays[i].idx = i + 1