From 0c44bfaf654b00e3b8ba550b16d5709a397fc4b8 Mon Sep 17 00:00:00 2001 From: CaptainOfHacks <39195263+CaptainOfHacks@users.noreply.github.com> Date: Tue, 12 Sep 2023 17:48:14 +0300 Subject: [PATCH] Update entity_deduplication.py --- ted_sws/master_data_registry/services/entity_deduplication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ted_sws/master_data_registry/services/entity_deduplication.py b/ted_sws/master_data_registry/services/entity_deduplication.py index 77508484f..3c13b1fbe 100644 --- a/ted_sws/master_data_registry/services/entity_deduplication.py +++ b/ted_sws/master_data_registry/services/entity_deduplication.py @@ -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)