Skip to content
Snippets Groups Projects
Commit a0502a27 authored by Gioacchino Vino's avatar Gioacchino Vino
Browse files

Remove oid duplicates in report

parent b22f3e83
No related branches found
No related tags found
1 merge request!149Remove oid duplicates in report
...@@ -150,9 +150,9 @@ with open(summary_filename, "w") as f: ...@@ -150,9 +150,9 @@ with open(summary_filename, "w") as f:
with open(oids_filename, "w") as f: with open(oids_filename, "w") as f:
if len(accepted_oids) > 0: if len(accepted_oids) > 0:
f.write("ACCEPTED OIDs\n") f.write("ACCEPTED OIDs\n")
f.writelines([msg + "\n" for msg in accepted_oids]) f.writelines([msg + "\n" for msg in set(accepted_oids)])
f.write("\n") f.write("\n")
if len(new_oids) > 0: if len(new_oids) > 0:
f.write("NEW OIDs\n") f.write("NEW OIDs\n")
f.writelines([msg + "\n" for msg in new_oids]) f.writelines([msg + "\n" for msg in set(new_oids)])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment