From 45c9d9651e0d9ff3cdbf46f2d9a7e53cfb4593d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Thu, 17 Sep 2026 10:58:47 +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_holiday/models/inherit_hr_leave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_holiday/models/inherit_hr_leave.py b/yuthon_holiday/models/inherit_hr_leave.py index 21067eed3..be60b40e4 100644 --- a/yuthon_holiday/models/inherit_hr_leave.py +++ b/yuthon_holiday/models/inherit_hr_leave.py @@ -232,7 +232,7 @@ class HrLeave(models.Model): if holiday.request_hour_from and holiday.request_hour_to: start_hour = float(holiday.request_hour_from) end_hour = float(holiday.request_hour_to) - if start_hour == 9 and end_hour == 12: + if start_hour == 9 and end_hour in [13, 14]: holiday.number_of_hours = 4 else: hour = end_hour - start_hour