mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Add an abort criterion when exporting query results
This commit is contained in:
parent
cedce5545d
commit
0861d931ce
@ -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 = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user