Selaa lähdekoodia

修复repeat取值问题

locky 2 vuotta sitten
vanhempi
commit
88e77d4f07
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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: