소스 검색

增加集团筛选

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

+ 1 - 1
jianye_report.py

@@ -201,7 +201,7 @@ class JianYeReport(object):
         pv_data = self.get_pv_data(time_type)
         if pv_data is not None:
             for x in pv_data:
-                if str(x[1]) == str(house_id):
+                if str(x[1]) == str(house_id) and str(x[0]) == self.brand_id:
                     return x[3:]
         return [0, 0, 0, 0]