From 9641e894154fa5a34121fc6d9a9350f5804d2e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E4=BB=B7=E4=BA=9A=E9=93=81?= <146941274+XWA-LY@users.noreply.github.com> Date: Tue, 17 Dec 2024 22:59:43 +0800 Subject: [PATCH] Update main.py --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 5f1c048..c954edb 100644 --- a/main.py +++ b/main.py @@ -104,10 +104,10 @@ def perform_clock_in(api_client: ApiClient, config: ConfigManager) -> Dict[str, current_hour = current_time.hour # 判断打卡类型 - if 8 <= current_hour < 12: + if 0 <= current_hour < 17: checkin_type = 'START' display_type = '上班' - elif 17 <= current_hour < 20: + elif 17 <= current_hour < 23: checkin_type = 'END' display_type = '下班' else: