Skip to content

Commit

Permalink
NiFi scripts: added ann manager limit on check ops.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladd-bit committed Apr 16, 2024
1 parent a4ec280 commit 423f6aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nifi/user-scripts/annotation_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def main():
if OPERATION_MODE == "check":
document_id = str(record[DOCUMENT_ID_FIELD_NAME])

query = "SELECT * FROM annotations WHERE elasticsearch_id LIKE '%" + document_id + "%'"
query = "SELECT * FROM annotations WHERE elasticsearch_id LIKE '%" + document_id + "%' LIMIT 1"
result = connect_and_query(query, db_file_path)

if len(result) < 1:
Expand Down

0 comments on commit 423f6aa

Please sign in to comment.