Просмотр исходного кода

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

zhangdongming 10 месяцев назад
Родитель
Сommit
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},