Skip to content

Commit 4eb23e1

Browse files
committed
Revert accidental code change on ovleraps fix
1 parent 39eaffe commit 4eb23e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ontology/models/models_ontology.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ def has_gene_relationship(term: Union[OntologyTerm, str], gene_symbol: Union[Gen
11091109
# optimisations for OMIM/MONDO
11101110
if term.ontology_service in {OntologyService.MONDO, OntologyService.OMIM}:
11111111
via_ids: QuerySet = None
1112-
exclude_mondo_omim = Q(relation__in={OntologyRelation.EXACT_SYNONYM, OntologyRelation.RELATED_SYNONYM})
1112+
exclude_mondo_omim = ~Q(relation__in={OntologyRelation.EXACT_SYNONYM, OntologyRelation.RELATED_SYNONYM})
11131113
if term.ontology_service == OntologyService.MONDO:
11141114
via_ids = OntologyTermRelation.objects.filter(source_term=term, dest_term__ontology_service=OntologyService.OMIM).filter(quality_q).filter(exclude_mondo_omim).values_list("dest_term_id", flat=True)
11151115
else:

0 commit comments

Comments
 (0)