Explorar el Código

修复bug:匹配周日期错误

nifangxu hace 1 mes
padre
commit
3d1d827145
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      core/time_plan.py

+ 1 - 1
core/time_plan.py

@@ -38,7 +38,7 @@ class TimePlan:
 
         # 周日期匹配
         match_weekdays: bool = False
-        if self.weekdays_ is not None and now.weekday() in self.weekdays_:
+        if self.weekdays_ is not None and (now.weekday()+1) in self.weekdays_:
             match_weekdays = True
 
         # 月日期匹配