소스 검색

修复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: