From c5c9beeb24b231bef466180c03c09a80d8eb88b4 Mon Sep 17 00:00:00 2001 From: rwidom Date: Fri, 11 Aug 2023 05:15:06 -0400 Subject: [PATCH] timestamp_created -> timestamp_update --- catalog/dags/providers/provider_api_scripts/europeana.py | 2 +- .../tests/dags/providers/provider_api_scripts/test_europeana.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/catalog/dags/providers/provider_api_scripts/europeana.py b/catalog/dags/providers/provider_api_scripts/europeana.py index 10f58625817..3b93e3402d9 100644 --- a/catalog/dags/providers/provider_api_scripts/europeana.py +++ b/catalog/dags/providers/provider_api_scripts/europeana.py @@ -199,7 +199,7 @@ def _get_timestamp_query_param(self, date): start_timestamp = start_timestamp.replace("+00:00", "Z") end_timestamp = end_timestamp.replace("+00:00", "Z") - return f"timestamp_created:[{start_timestamp} TO {end_timestamp}]" + return f"timestamp_update:[{start_timestamp} TO {end_timestamp}]" def get_next_query_params(self, prev_query_params) -> dict: if not prev_query_params: diff --git a/catalog/tests/dags/providers/provider_api_scripts/test_europeana.py b/catalog/tests/dags/providers/provider_api_scripts/test_europeana.py index 65434ca2d55..270a597529f 100644 --- a/catalog/tests/dags/providers/provider_api_scripts/test_europeana.py +++ b/catalog/tests/dags/providers/provider_api_scripts/test_europeana.py @@ -33,7 +33,7 @@ def test_derive_timestamp_pair(ingester): # The timestamps below depend on the ``FROZEN_DATE`` constant # defined above. assert ingester.base_request_body["query"] == ( - "timestamp_created:[2018-01-15T00:00:00Z TO 2018-01-16T00:00:00Z]" + "timestamp_update:[2018-01-15T00:00:00Z TO 2018-01-16T00:00:00Z]" )