Skip to content
Snippets Groups Projects
Commit 0861d931 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Add an abort criterion when exporting query results

parent cedce554
No related branches found
No related tags found
No related merge requests found
...@@ -245,6 +245,8 @@ def corpus_analysis_get_match_with_full_context(payload): ...@@ -245,6 +245,8 @@ def corpus_analysis_get_match_with_full_context(payload):
i = 0 i = 0
# Send data one match at a time. # Send data one match at a time.
for index, f_cpos, l_cpos in zip(data_indexes, first_cpos, last_cpos): for index, f_cpos, l_cpos in zip(data_indexes, first_cpos, last_cpos):
if client.status == 'abort':
break
i += 1 i += 1
matches = [] matches = []
cpos_lookup = text_lookup = {} cpos_lookup = text_lookup = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment