瀏覽代碼

修复repeat取值问题

locky 2 年之前
父節點
當前提交
88e77d4f07
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/SensorGateway/SmartSceneController.py

+ 1 - 1
Controller/SensorGateway/SmartSceneController.py

@@ -1068,7 +1068,7 @@ class SmartSceneView(View):
                         return True
                 else:
                     # 有相同的重复天
-                    if repeat & EffectiveTime.repeat != 0:
+                    if repeat & effective_time_md.repeat != 0:
                         # 判断时间是否在已设置过的时间范围之内
                         if effective_time_md.start_time <= start_time <= effective_time_md.end_time or \
                                 effective_time_md.start_time <= end_time <= effective_time_md.end_time: