소스 검색

report_push: 处理重复的数据

Signed-off-by: binren <zhangbr@elab-plus.com>
binren 5 년 전
부모
커밋
c578b4ab84
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      report_push.py

+ 1 - 1
report_push.py

@@ -605,7 +605,7 @@ class ReportPush(object):
             if x[0] not in house_ids:
                 house_ids.append(x[0])
         for x in brand_top_data:
-            if x[1] not in house_ids:
+            if x[1] not in house_ids and x[1] is not None and int(x[1]) > 300:
                 house_ids.append(x[1])
         for house_id in house_ids:
             a = []