Skip to content

Commit

Permalink
Text annotation: select SQL now filters empty, unconnected annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Dec 27, 2024
1 parent cd234a7 commit 4552558
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openatlas/database/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def get_annotation_text_by_source(source_id: int) -> list[dict[str, Any]]:
ANNOTATION_TEXT_SELECT +
"""
WHERE source_id = %(source_id)s
AND NOT (entity_id IS NULL AND (text IS NULL OR text = ''))
ORDER BY link_start;
""",
{'source_id': source_id})
Expand Down

0 comments on commit 4552558

Please sign in to comment.