Commit 45d2a52e authored by 赵威's avatar 赵威

add printer

parent e884a33f
......@@ -42,12 +42,14 @@ def merge_results_by_event(lst):
res = {}
for (k, v) in tmp.items():
d2 = merge_values(v)
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
# 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
if d2:
res[k] = d2
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