|
@@ -10,7 +10,7 @@ START_TIME = [8, 0]
|
|
|
END_TIME = [10, 0]
|
|
END_TIME = [10, 0]
|
|
|
|
|
|
|
|
|
|
|
|
|
-# 自定义规则(此处设置周六周日不打卡,1月后不打卡)
|
|
|
|
|
|
|
+# 自定义规则
|
|
|
def check_rule():
|
|
def check_rule():
|
|
|
t = datetime.date.today()
|
|
t = datetime.date.today()
|
|
|
#if t.weekday() == 5 or t.weekday() == 6 or is_holiday(t): # 周六日无需打卡
|
|
#if t.weekday() == 5 or t.weekday() == 6 or is_holiday(t): # 周六日无需打卡
|