From cbd91e129c7ff213d29869a20fa552ee95ba12b9 Mon Sep 17 00:00:00 2001 From: rhysrevans3 Date: Thu, 19 Sep 2024 12:44:44 +0100 Subject: [PATCH] Fixing item link in collection. --- esgf-consumer/esgf_consumer/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esgf-consumer/esgf_consumer/collection.py b/esgf-consumer/esgf_consumer/collection.py index f6fb0e5..3a32956 100644 --- a/esgf-consumer/esgf_consumer/collection.py +++ b/esgf-consumer/esgf_consumer/collection.py @@ -75,7 +75,7 @@ async def _create_collection( { "rel": "items", "type": "application/geo+json", - "href": f"https://api.stac.ceda.ac.uk/collections/cmip6/{collection_id}", + "href": f"https://api.stac.ceda.ac.uk/collections/{collection_id}/items", }, { "rel": "root",