Parcourir la source

report_push: 处理重复的数据

Signed-off-by: binren <zhangbr@elab-plus.com>
binren il y a 5 ans
Parent
commit
c578b4ab84
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 = []