Skip to content

Commit

Permalink
Update entity_deduplication.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CaptainOfHacks committed Sep 12, 2023
1 parent c3ff970 commit 0c44bfa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def deduplicate_procedure_entities(notices: List[Notice], procedure_cet_uri: str
notice_families = defaultdict(list)
for notice in notices:
if notice.original_metadata and notice.original_metadata.RN:
parent_notice_id = notice.original_metadata.RN[0]
parent_notice_id = str(notice.original_metadata.RN[0])
parent_notice_id = f"{parent_notice_id[4:]}-{parent_notice_id[:4]}"
notice_families[parent_notice_id].append(notice)

Expand Down

0 comments on commit 0c44bfa

Please sign in to comment.