@@ -152,7 +152,7 @@ def f_loop():
continue
end_time = datetime.datetime.strptime(TODAY+" %d:%d:59" % (config.END_TIME[0], config.END_TIME[1]), '%Y-%m-%d %H:%M:%S')
- if now >= end_time: # 超过考勤时间
+ if now >= end_time and not TODAY_SUCCESS: # 超过考勤时间
print("[%s] 今日超过设置时间,将不打卡" % TODAY)
TODAY_SUCCESS = True
time.sleep(5)