Skip to content

Commit

Permalink
Merge pull request #37 from mitre/dup_fix
Browse files Browse the repository at this point in the history
Fix for double LINK IDs when a row is deconflicted
  • Loading branch information
dehall authored May 22, 2023
2 parents 6203e33 + f1c291d commit 6c35b1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions link_ids.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ def do_link_ids(c, remove=False):
final_record = deconflict(
row, systems, c.project_deconfliction_weights
)
# remove the ids that were actually used, leave the rest
# so that they count as "unmatched_ids" below
for system, record_id in final_record.items():
all_ids_for_systems[system].remove(record_id)
else:
for s in systems:
record_id = row.get(s, None)
Expand Down

0 comments on commit 6c35b1b

Please sign in to comment.