소스 검색

美洲服批量保存300条数据

locky 1 년 전
부모
커밋
d34f2205c5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Service/DevicePushService.py

+ 2 - 2
Service/DevicePushService.py

@@ -246,8 +246,8 @@ class DevicePushService:
                 equipment_info_len = redis_obj.llen(equipment_info_key)
                 if CONFIG_INFO == CONFIG_US:
                     # 美洲服批量保存300条数据
-                    if equipment_info_len >= 1000:
-                        end = 999
+                    if equipment_info_len >= 300:
+                        end = 299
                 else:
                     # 缓存数据多于100条,批量保存前100条,否则保存全部
                     equipment_info_len = redis_obj.llen(equipment_info_key)