Explorar o código

report_push: 处理重复的数据

Signed-off-by: binren <zhangbr@elab-plus.com>
binren %!s(int64=5) %!d(string=hai) anos
pai
achega
c578b4ab84
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 = []