소스 검색

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

zhangdongming 10 달 전
부모
커밋
1aaf96488c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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},