mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Remove pj_
This commit is contained in:
parent
19aee30b1b
commit
9ec1b596f8
@ -7,7 +7,7 @@ from . import corpora
|
|||||||
from .background_functions import (delete_corpus_, delete_corpus_file_,
|
from .background_functions import (delete_corpus_, delete_corpus_file_,
|
||||||
edit_corpus_file_)
|
edit_corpus_file_)
|
||||||
from .forms import (AddCorpusFileForm, AddCorpusForm, EditCorpusFileForm,
|
from .forms import (AddCorpusFileForm, AddCorpusForm, EditCorpusFileForm,
|
||||||
QueryDownloadForm, QueryForm)
|
QueryDownloadForm, QueryForm, DisplayOptionsForm)
|
||||||
from .. import db
|
from .. import db
|
||||||
from ..models import Corpus, CorpusFile
|
from ..models import Corpus, CorpusFile
|
||||||
import os
|
import os
|
||||||
@ -48,9 +48,9 @@ def corpus(corpus_id):
|
|||||||
title='Corpus')
|
title='Corpus')
|
||||||
|
|
||||||
|
|
||||||
@corpora.route('/<int:corpus_id>/pj_analyse')
|
@corpora.route('/<int:corpus_id>/analyse')
|
||||||
@login_required
|
@login_required
|
||||||
def pj_analyse_corpus(corpus_id):
|
def analyse_corpus(corpus_id):
|
||||||
corpus = Corpus.query.get_or_404(corpus_id)
|
corpus = Corpus.query.get_or_404(corpus_id)
|
||||||
if corpus.status == 'prepared':
|
if corpus.status == 'prepared':
|
||||||
corpus.status = 'start analysis'
|
corpus.status = 'start analysis'
|
||||||
@ -62,7 +62,7 @@ def pj_analyse_corpus(corpus_id):
|
|||||||
query_form = QueryForm(prefix='query-form',
|
query_form = QueryForm(prefix='query-form',
|
||||||
query=request.args.get('query'))
|
query=request.args.get('query'))
|
||||||
query_download_form = QueryDownloadForm()
|
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,
|
corpus_id=corpus_id,
|
||||||
display_options_form=display_options_form,
|
display_options_form=display_options_form,
|
||||||
query_form=query_form,
|
query_form=query_form,
|
||||||
|
Loading…
Reference in New Issue
Block a user