From 7fd75c752a3ce17d52448fe0adeb036807159a13 Mon Sep 17 00:00:00 2001 From: zhouzhou <123@qq.com> Date: Tue, 17 Dec 2024 16:43:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/models/yuthon_shift_planning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/models/yuthon_shift_planning.py b/yuthon_hr_attendance/models/yuthon_shift_planning.py index d02234fad..a24cc292d 100644 --- a/yuthon_hr_attendance/models/yuthon_shift_planning.py +++ b/yuthon_hr_attendance/models/yuthon_shift_planning.py @@ -86,7 +86,7 @@ class YuthonShiftPlanning(models.Model): pass # 跳过休息日 else: if current_date.day == 31: - self.create_planning_slot(record, role_a, role[role_index-1], current_date) + self.create_planning_slot(record, role_a, role[role_index-2], current_date) else: self.create_planning_slot(record, role_a, role[role_index], current_date) current_date += timedelta(days=1)