Explorar el Código

增加集团筛选

Signed-off-by: binren <zhangbr@elab-plus.com>
binren hace 5 años
padre
commit
3c9b0a09d3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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]