Commit e884a33f authored by 赵威's avatar 赵威

add printer

parent 1e78d7af
......@@ -42,8 +42,12 @@ def merge_results_by_event(lst):
res = {}
for (k, v) in tmp.items():
d2 = merge_values(v)
if d2:
res[k] = sorted(d2.items(), key=lambda x: x[1], reverse=True)
lst = sorted(d2.items(), key=lambda x: x[1], reverse=True)
tmp_lst = []
for i in lst:
tmp_lst.append(i[0])
if tmp_lst:
res[k] = tmp_lst
return res
......
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