瀏覽代碼

解决DVR推送间隔1

tanghongbin 5 年之前
父節點
當前提交
8c7830ceae
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/DetectController.py

+ 1 - 1
Controller/DetectController.py

@@ -131,7 +131,7 @@ class NotificationView(View):
             else:
                 detect_med_type = 2  # 为2的话,既推送,又存库
                 # detect_group=0允许全部推送的时候
-                if detect_group == '0':
+                if detect_group == '0'or detect_group == '':
                     redisObj.set_data(key=dkey, val=1, expire=detect_interval)
                 else:
                     detect_group_list = detect_group.split(',')