Skip to content

Commit

Permalink
issue #76 ensure collection_ids is a union across backends
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVerstraelen committed Nov 29, 2022
1 parent 9730e88 commit e03fa23
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/openeo_aggregator/metadata/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,10 @@ def get_all_collections_ids(backend_urls) -> List[str]:
r = requests.get(url + "/collections")
r.raise_for_status()
collections_result = r.json()
collection_ids = set()
for c in collections_result["collections"]:
cid = c["id"]
if cid != "":
collection_ids.add(cid)
collection_ids.update(collection_ids)
return sorted(collection_ids)


Expand Down

0 comments on commit e03fa23

Please sign in to comment.