소스 검색

report_push: 逻辑调整

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

+ 1 - 1
report_push.py

@@ -634,7 +634,7 @@ class ReportPush(object):
                 pass
         if brands:
             for x in brand_top_data:
-                if x[0] in brands and x[1] < 300:
+                if x[0] in brands and x[1] is not None and int(x[1]) < 300:
                     result.append(x)
         result.sort(key=lambda obj: obj[2])
         result.reverse()