Browse Source

优化消息推送关闭移动侦测提醒

zhangdongming 10 tháng trước cách đây
mục cha
commit
1aaf96488c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Controller/DetectControllerV2.py

+ 1 - 1
Controller/DetectControllerV2.py

@@ -189,7 +189,7 @@ class DetectControllerViewV2(View):
                 elif status == 1 and uid_set_qs.first().detect_status == 0:
                     uid_set_data['detect_interval'] = 60
                     types = ALGORITHM_COMBO_TYPES
-                    types.remove(51)
+                    types = [x for x in types if x != 51]
                     msg_data = {'appPush': 1,
                                 'pushTime': {'allDay': 1, 'repeat': 127, 'endTime': 0, 'timeZone': '+08.00',
                                              'startTime': 0},