Skip to content

Commit

Permalink
Update daily_notices_metadata_services.py
Browse files Browse the repository at this point in the history
  • Loading branch information
duprijil committed Oct 6, 2023
1 parent 70be603 commit 6ee10a5
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)

0 comments on commit 6ee10a5

Please sign in to comment.