@@ -346,8 +346,19 @@ class AppletAttendance(Controller):
|
||||
is_late_card = att.is_late_card
|
||||
check_in_status = '缺卡' if not check_in else ('迟到' if is_late_card else '正常')
|
||||
check_out_status = '缺卡' if not check_out else ('早退' if is_early_card else '正常')
|
||||
check_in_str = (check_in + timedelta(hours=8)).strftime('%H:%M:%S') if check_in else '缺卡'
|
||||
check_out_str = (check_out + timedelta(hours=8)).strftime('%H:%M:%S') if check_out else '缺卡'
|
||||
if check_in:
|
||||
check_in_str = (check_in + timedelta(hours=8)).strftime('%H:%M:%S')
|
||||
if check_in_status in ['迟到', '早退', '缺卡']:
|
||||
check_in_str += f" ({check_in_status})"
|
||||
else:
|
||||
check_in_str = '缺卡'
|
||||
if check_out:
|
||||
check_out_str = (check_out + timedelta(hours=8)).strftime('%H:%M:%S')
|
||||
if check_out_status in ['迟到', '早退', '缺卡']:
|
||||
check_out_str += f" ({check_out_status})"
|
||||
else:
|
||||
check_out_str = '缺卡'
|
||||
|
||||
if not check_in_status and not check_out_status:
|
||||
color_select = 3
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user