From 78f93a884b7253918fef37176f5cbaaecc34eb1e Mon Sep 17 00:00:00 2001 From: Stephan Porada Date: Mon, 20 Apr 2020 15:09:08 +0200 Subject: [PATCH] Move down from 100 to 50 words lr context --- app/corpora/events.py | 2 +- app/corpora/forms.py | 14 ++------------ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/app/corpora/events.py b/app/corpora/events.py index d3902f8a..01a73aec 100644 --- a/app/corpora/events.py +++ b/app/corpora/events.py @@ -58,7 +58,7 @@ def corpus_analysis_query(query): # TODO: Stop here and add a new method for transmission chunk_size = 100 chunk_start = 0 - context = 100 + context = 50 progress = 0 client.status = 'running' while chunk_start <= results.attrs['size']: diff --git a/app/corpora/forms.py b/app/corpora/forms.py index c050d6ba..9021da97 100644 --- a/app/corpora/forms.py +++ b/app/corpora/forms.py @@ -74,24 +74,14 @@ class DisplayOptionsForm(FlaskForm): ('20', '20'), ('30', '30'), ('40', '40'), - ('50', '50'), - ('60', '60'), - ('70', '70'), - ('80', '80'), - ('90', '90'), - ('100', '100')]) + ('50', '50')]) results_per_page = SelectField('Results per page', choices=[('', 'Choose your option'), ('10', '10'), ('20', '20'), ('30', '30'), ('40', '40'), - ('50', '50'), - ('60', '60'), - ('70', '70'), - ('80', '80'), - ('90', '90'), - ('100', '100')]) + ('50', '50')]) class InspectDisplayOptionsForm(FlaskForm):