Skip to content

Commit

Permalink
Renaming status code
Browse files Browse the repository at this point in the history
  • Loading branch information
HertugHelms committed Oct 25, 2023
1 parent f6f5452 commit 41bd23e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions creodias_finder/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
"https://catalogue.dataspace.copernicus.eu/resto/api/collections/{collection}"
"/search.json?maxRecords=1000"
)
ONLINE_STATUS_CODES = "34|37|0"


def query(
collection,
start_date=None,
end_date=None,
geometry=None,
status=ONLINE_STATUS_CODES,
status="ONLINE",
**kwargs,
):
"""Query the EOData Finder API
Expand All @@ -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
Expand Down

0 comments on commit 41bd23e

Please sign in to comment.