From 5952db0b4a6d8d3e53ba5156051f8bc4008462c4 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Tue, 3 Sep 2019 16:06:15 +0200 Subject: [PATCH] Change how the job id is obtained. --- app/main/views.py | 4 ++-- app/templates/main/corpora/corpus.html.j2 | 4 ++-- app/templates/main/jobs/job.html.j2 | 3 +-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/main/views.py b/app/main/views.py index 773aaf08..3fef5a04 100644 --- a/app/main/views.py +++ b/app/main/views.py @@ -31,7 +31,7 @@ def corpus(corpus_id): files[file]['path'] = os.path.join(file) return render_template('main/corpora/corpus.html.j2', - corpus_id=corpus.id, + corpus=corpus, files=files, title='Corpus') @@ -117,7 +117,7 @@ def job(job_id): return render_template('main/jobs/job.html.j2', files=files, - job_id=job.id, + job=job, title='Job') diff --git a/app/templates/main/corpora/corpus.html.j2 b/app/templates/main/corpora/corpus.html.j2 index fe6c6832..590c14e7 100644 --- a/app/templates/main/corpora/corpus.html.j2 +++ b/app/templates/main/corpora/corpus.html.j2 @@ -2,7 +2,7 @@ {% block page_content %}