Commit 969e4548 authored by 赵威's avatar 赵威

remove empty dict

parent 3952068d
...@@ -33,10 +33,11 @@ def merge_results_by_event(lst): ...@@ -33,10 +33,11 @@ def merge_results_by_event(lst):
for i in lst: for i in lst:
event_cn = i[0] event_cn = i[0]
d = i[1] d = i[1]
if event_cn not in res: if d:
res[event_cn] = [d] if event_cn not in res:
else: res[event_cn] = [d]
res[event_cn].append(d) else:
res[event_cn].append(d)
return res 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