Skip to content

Commit

Permalink
Merge pull request #15 from GermanoGuerrini/metadata_constraint
Browse files Browse the repository at this point in the history
Metadata constraint
  • Loading branch information
ricardo-correa authored Oct 19, 2022
2 parents b910ccc + fb7342e commit f033338
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion hda/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,11 @@ def dataset(self, datasetId):
return self.get("datasets", datasetId)

def metadata(self, datasetId):
return self.get("querymetadata", datasetId)
response = self.get("querymetadata", datasetId)
# Remove extra information only useful on the WEkEO UI
if "constraints" in response:
del response["constraints"]
return response

def get(self, *args):

Expand Down
2 changes: 1 addition & 1 deletion tests/test_hda.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_hda_1():
}
matches = c.search(r)
print(matches)
assert len(matches.results) == 1, matches
assert len(matches.results) == 940, matches
# Too large to download
# matches.download()

Expand Down

0 comments on commit f033338

Please sign in to comment.