Skip to content

Commit

Permalink
fix of similarity queries
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Jan 13, 2025
1 parent f4432ec commit 458332b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon/connections/mongo/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 458332b

Please sign in to comment.