From 41bd23e96d43b3e8670c3b7fe082d17f51e262cc Mon Sep 17 00:00:00 2001 From: Casper Helms Date: Wed, 25 Oct 2023 08:00:08 +0200 Subject: [PATCH] Renaming status code --- creodias_finder/query.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/creodias_finder/query.py b/creodias_finder/query.py index 9b537d0..c15d5bd 100644 --- a/creodias_finder/query.py +++ b/creodias_finder/query.py @@ -12,7 +12,6 @@ "https://catalogue.dataspace.copernicus.eu/resto/api/collections/{collection}" "/search.json?maxRecords=1000" ) -ONLINE_STATUS_CODES = "34|37|0" def query( @@ -20,7 +19,7 @@ def query( start_date=None, end_date=None, geometry=None, - status=ONLINE_STATUS_CODES, + status="ONLINE", **kwargs, ): """Query the EOData Finder API @@ -37,7 +36,7 @@ def query( geometry: WKT polygon or object impementing __geo_interface__ area of interest as well-known text string status : str - allowed online/offline statuses (|-separated for OR) + allowed online/offline/all status (ONLINE || OFFLINE || ALL) **kwargs Additional arguments can be used to specify other query parameters, e.g. productType=L1GT