binren 5 years ago
parent
commit
6717570b05
1 changed files with 3 additions and 1 deletions
  1. 3 1
      report_push.py

+ 3 - 1
report_push.py

@@ -585,11 +585,13 @@ class ReportPush(object):
                 for i in range(1, 10):
                     house_result_part.append(equal_house[i])
             elif not equal_house and equal_brand:
-                for i in range(0, 1):
+                for i in range(0, 10):
                     house_result_part.append(equal_brand[i])
             house_result.append(sum(house_result_part))
             house_result.extend(house_result_part)
             result.append(house_result)
+        result.sort(key=lambda obj: obj[1])
+        result.reverse()
         return result
 
     def equal_by_house_id(self, data, house_id, index):