Skip to content

Commit

Permalink
Added an EO:ESA case for query conversion.
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanoGuerrini committed Feb 21, 2024
1 parent f430dfa commit 627daf6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hda/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ def convert(query):
elif dataset_id.startswith("EO:CNES:DAT:SWH"):
new_query["creationDateStart"] = start
new_query["creationDateEnd"] = end
elif dataset_id.startswith("EO:ESA"):
new_query["startDate"] = start
new_query["completionDate"] = end
else:
new_query[f"{name}_start"] = start
new_query[f"{name}_end"] = end
Expand Down

0 comments on commit 627daf6

Please sign in to comment.