!4544 添加功能

Merge pull request !4544 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2025-08-14 03:37:39 +00:00
committed by Gitee
@@ -467,14 +467,14 @@ class AppletAttendance(Controller):
check_in_str = f"{check_in_status} {check_in_time}" if check_in_status in ['迟到',
'早退'] else check_in_time
else:
check_in_str = '正常' if is_weekend else '缺卡'
check_in_str = '' if is_weekend else '缺卡'
if check_out:
check_out_time = (check_out + timedelta(hours=8)).strftime('%H:%M:%S')
check_out_str = f"{check_out_status} {check_out_time}" if check_out_status in ['迟到',
'早退'] else check_out_time
else:
check_out_str = '正常' if is_weekend else '缺卡'
check_out_str = '' if is_weekend else '缺卡'
if not check_in_status and not check_out_status:
color_select = 3