Commit e2bab94d by tinywell

rate结果排序 bug

parent 86fa9fa8
......@@ -3,3 +3,5 @@
geo_agent:
docker build -t brilliance/geo_agent .
dev_agent:
docker build -t brilliance/geo_agent:dev .
\ No newline at end of file
......@@ -124,7 +124,7 @@ class RegionRateTool(BaseRateTool):
for item in df.resultdata:
rate_date = self._extract_rate_data(item)
result_data.append(rate_date)
sorted_data = [rate_date[0]]
sorted_data = [result_data[0]]
if len(result_data) > 1:
sorted_data.extend(sorted(result_data[1:], key=lambda x: x['在线率']))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment