소스 검색

fix a bug

highing666 3 년 전
부모
커밋
249fb24f89
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/controllers/equipment/vrf/basic.py

+ 2 - 2
app/controllers/equipment/vrf/basic.py

@@ -154,8 +154,8 @@ class VRFController1(VRFController):
         else:
             utc = arrow.utcnow()
             now = utc.to("Asia/Shanghai")
-            ago = now.shift(seconds=-290).format("HHmmSS")
-            later = now.shift(seconds=290).format("HHmmSS")
+            ago = now.shift(seconds=-150).format("HHmmSS")
+            later = now.shift(seconds=150).format("HHmmSS")
 
             if ago <= self.on_time <= later:
                 if not self.device.running_status: