From 3cf3a69976ba51ad4c0ddc328aadcde6677a6196 Mon Sep 17 00:00:00 2001 From: CaptainOfHacks <39195263+CaptainOfHacks@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:07:54 +0200 Subject: [PATCH] Update notice_fetcher.py --- ted_sws/notice_fetcher/services/notice_fetcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ted_sws/notice_fetcher/services/notice_fetcher.py b/ted_sws/notice_fetcher/services/notice_fetcher.py index 8f6713ed..305f2121 100644 --- a/ted_sws/notice_fetcher/services/notice_fetcher.py +++ b/ted_sws/notice_fetcher/services/notice_fetcher.py @@ -112,9 +112,9 @@ def fetch_notices_by_query(self, query: dict) -> List[str]: documents = self.ted_api_adapter.get_generator_by_query(query=query) notice_ids = set() for document in documents: - notice_ids.add(document["ND"]) notice = self._create_notice(notice_data=document) if check_if_xml_manifestation_is_eform(notice.xml_manifestation.object_data): + notice_ids.add(document["ND"]) self.notice_repository.add(notice=notice) else: print(f"Notice [{notice.ted_id}] is standard form!")