Remove pj_

This commit is contained in:
Stephan Porada 2020-04-06 14:27:14 +02:00
parent 19aee30b1b
commit 9ec1b596f8

View File

@ -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('/<int:corpus_id>/pj_analyse')
@corpora.route('/<int:corpus_id>/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,