|
@@ -566,10 +566,10 @@ class ReportPush(object):
|
|
|
house_ids = []
|
|
|
result = []
|
|
|
for x in house_data:
|
|
|
- if x[0] not in [x[0] for x in house_ids]:
|
|
|
+ if x[0] not in [a[0] for a in house_ids]:
|
|
|
house_ids.append([x[0], x[1]])
|
|
|
for x in brand_data:
|
|
|
- if x[2] not in [x[0] for x in house_ids]:
|
|
|
+ if x[2] not in [a[0] for a in house_ids]:
|
|
|
house_ids.append([x[2], x[3]])
|
|
|
for id in house_ids:
|
|
|
house_id = id[0]
|
|
@@ -582,7 +582,7 @@ class ReportPush(object):
|
|
|
for i in range(0, 10):
|
|
|
house_result_part.append(self.add(equal_house[i], equal_brand[i]))
|
|
|
elif equal_house and not equal_brand:
|
|
|
- for i in range(1, 10):
|
|
|
+ for i in range(0, 10):
|
|
|
house_result_part.append(equal_house[i])
|
|
|
elif not equal_house and equal_brand:
|
|
|
for i in range(0, 10):
|