mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-24 10:34:17 +00:00
use variable instead of magic number
This commit is contained in:
parent
f4ac584668
commit
b6ffad1ae4
@ -45,9 +45,10 @@ def corpus_analysis_query(query):
|
|||||||
else:
|
else:
|
||||||
chunk_size = 500
|
chunk_size = 500
|
||||||
chunk_start = 0
|
chunk_start = 0
|
||||||
|
context = 100
|
||||||
while chunk_start < client.match_count:
|
while chunk_start < client.match_count:
|
||||||
chunk = client.show_query_results(result_len=chunk_size,
|
chunk = client.show_query_results(result_len=chunk_size,
|
||||||
context_len=100,
|
context_len=context,
|
||||||
result_offset=chunk_start)
|
result_offset=chunk_start)
|
||||||
socketio.emit('corpus_analysis_query', chunk, room=request.sid)
|
socketio.emit('corpus_analysis_query', chunk, room=request.sid)
|
||||||
chunk_start += chunk_size
|
chunk_start += chunk_size
|
||||||
|
Loading…
Reference in New Issue
Block a user