Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
XWA-LY authored Dec 17, 2024
1 parent 9374c06 commit 9641e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9641e89

Please sign in to comment.