diff --git a/hda/api.py b/hda/api.py index 38fbc83..ca2f26f 100644 --- a/hda/api.py +++ b/hda/api.py @@ -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): diff --git a/tests/test_hda.py b/tests/test_hda.py index b48dcb3..27aba70 100644 --- a/tests/test_hda.py +++ b/tests/test_hda.py @@ -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()