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

remove empty dict

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