diff --git a/src/eodash_catalog/endpoints.py b/src/eodash_catalog/endpoints.py index 4b9e7ae..7718313 100644 --- a/src/eodash_catalog/endpoints.py +++ b/src/eodash_catalog/endpoints.py @@ -386,7 +386,7 @@ def handle_xcube_endpoint( def handle_GeoDB_endpoint( catalog_config: dict, endpoint_config: dict, collection_config: dict, catalog: Catalog ) -> Collection: - # ID of collection is data["Name"] instead of CollectionId to be able to + # ID of collection is data["Name"] instead of CollectionId to be able to # create more STAC collections from one geoDB table collection = get_or_create_collection( catalog, collection_config["Name"], collection_config, catalog_config, endpoint_config diff --git a/src/eodash_catalog/utils.py b/src/eodash_catalog/utils.py index 80840dd..53b5d76 100644 --- a/src/eodash_catalog/utils.py +++ b/src/eodash_catalog/utils.py @@ -240,7 +240,7 @@ class Options: def add_single_item_if_collection_empty(collection: Collection) -> None: for link in collection.links: - if link.rel == RelType.ITEM: + if link.rel in [RelType.CHILD, RelType.ITEM]: break else: item = Item(