From 458332bc952d627f24eaafbd62b10e7da4634e4b Mon Sep 17 00:00:00 2001 From: costero-e Date: Mon, 13 Jan 2025 16:31:26 +0100 Subject: [PATCH] fix of similarity queries --- beacon/connections/mongo/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beacon/connections/mongo/filters.py b/beacon/connections/mongo/filters.py index b4b8f91..0ef64c7 100644 --- a/beacon/connections/mongo/filters.py +++ b/beacon/connections/mongo/filters.py @@ -394,7 +394,7 @@ def apply_filters(self, query: dict, filters: List[dict], collection: str, query partial_query = apply_ontology_filter(self, partial_query, filter, collection, request_parameters, dataset) elif "similarity" in filter or "includeDescendantTerms" in filter or re.match(CURIE_REGEX, filter["id"]) and filter["id"].isupper(): filter = OntologyFilter(**filter)# pragma: no cover - partial_query = apply_ontology_filter(self, partial_query, filter, collection, request_parameters)# pragma: no cover + partial_query = apply_ontology_filter(self, partial_query, filter, collection, request_parameters, dataset)# pragma: no cover else: filter = CustomFilter(**filter) partial_query = apply_custom_filter(self, partial_query, filter, collection, dataset)