From 6ee10a566d38781abdc8dcf1a7690aa937d71802 Mon Sep 17 00:00:00 2001 From: Dumitru <d.prijilevschi@gmail.com> Date: Fri, 6 Oct 2023 15:27:03 +0300 Subject: [PATCH] Update daily_notices_metadata_services.py --- .../services/daily_notices_metadata_services.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/ted_sws/supra_notice_manager/services/daily_notices_metadata_services.py b/ted_sws/supra_notice_manager/services/daily_notices_metadata_services.py index dda6327e..6e6705c8 100644 --- a/ted_sws/supra_notice_manager/services/daily_notices_metadata_services.py +++ b/ted_sws/supra_notice_manager/services/daily_notices_metadata_services.py @@ -93,8 +93,6 @@ def update_daily_notices_metadata_from_ted(start_date: date = None, ted_api_query[TED_API_QUERY_FIELD] = ted_api_query[TED_API_QUERY_FIELD].format( aggregation_date=day.strftime(TED_API_WILDCARD_DATE_FORMAT)) notice_ids = ted_api.get_by_query(ted_api_query, result_fields=DAILY_NOTICES_METADATA_TED_API_QUERY_RESULT_FIELDS) - if not notice_ids: - continue daily_notices_metadata = DailyNoticesMetadata(aggregation_date=day) daily_notices_metadata.ted_api_notice_ids = [notice[TED_API_NOTICE_ID_FIELD] for notice in notice_ids] daily_notices_metadata_repo.add(daily_notices_metadata) @@ -154,4 +152,3 @@ def update_daily_notices_metadata_with_fetched_data(start_date: date = None, daily_notices_metadata.mapping_suite_packages = mapping_suite_packages daily_notices_metadata.fetched_notice_ids = fetched_notice_ids daily_notices_metadata_repo.update(daily_notices_metadata) -