From 421c4f68765160384ce7cebd0878bcc27d4dce1f Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Tue, 31 Dec 2024 14:20:01 -0500 Subject: [PATCH] fix ref --- pygeoapi/api/environmental_data_retrieval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygeoapi/api/environmental_data_retrieval.py b/pygeoapi/api/environmental_data_retrieval.py index b449ce257..4b8df79fe 100644 --- a/pygeoapi/api/environmental_data_retrieval.py +++ b/pygeoapi/api/environmental_data_retrieval.py @@ -442,7 +442,7 @@ def get_oas_30(cfg: dict, locale: str) -> tuple[list[dict[str, str]], dict[str, 'qt': qt, 'op_id': f'query{qt.capitalize()}{k.capitalize()}' }) - if ep.instances: + if 'instances' in ep.get_query_types(): edr_query_endpoints.append({ 'path': f'{collection_name_path}/instances/{{instanceId}}/{qt}', # noqa 'qt': qt,