locky 2 жил өмнө
parent
commit
88e77d4f07

+ 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: