diff --git a/app/corpora/views.py b/app/corpora/views.py index 0d67d621..6870fec2 100644 --- a/app/corpora/views.py +++ b/app/corpora/views.py @@ -7,7 +7,7 @@ from . import corpora from .background_functions import (delete_corpus_, delete_corpus_file_, edit_corpus_file_) from .forms import (AddCorpusFileForm, AddCorpusForm, EditCorpusFileForm, - QueryDownloadForm, QueryForm) + QueryDownloadForm, QueryForm, DisplayOptionsForm) from .. import db from ..models import Corpus, CorpusFile import os @@ -48,9 +48,9 @@ def corpus(corpus_id): title='Corpus') -@corpora.route('//pj_analyse') +@corpora.route('//analyse') @login_required -def pj_analyse_corpus(corpus_id): +def analyse_corpus(corpus_id): corpus = Corpus.query.get_or_404(corpus_id) if corpus.status == 'prepared': corpus.status = 'start analysis' @@ -62,7 +62,7 @@ def pj_analyse_corpus(corpus_id): query_form = QueryForm(prefix='query-form', query=request.args.get('query')) query_download_form = QueryDownloadForm() - return render_template('corpora/pj_analyse_corpus.html.j2', + return render_template('corpora/analyse_corpus.html.j2', corpus_id=corpus_id, display_options_form=display_options_form, query_form=query_form,