aboutsummaryrefslogtreecommitdiff
path: root/uploader/phenotypes
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/phenotypes')
-rw-r--r--uploader/phenotypes/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index a664ba9..44175a0 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -15,7 +15,6 @@ from flask import (flash,
url_for,
redirect,
Blueprint,
- render_template,
current_app as app)
# from r_qtl import r_qtl2 as rqtl2
@@ -24,6 +23,7 @@ from r_qtl import exceptions as rqe
from uploader import jobs
from uploader.files import save_file#, fullpath
+from uploader.ui import make_template_renderer
from uploader.oauth2.client import oauth2_post
from uploader.authorisation import require_login
from uploader.species.models import all_species, species_by_id
@@ -44,6 +44,7 @@ from .models import (dataset_by_id,
datasets_by_population)
phenotypesbp = Blueprint("phenotypes", __name__)
+render_template = make_template_renderer("phenotypes")
@phenotypesbp.route("/phenotypes", methods=["GET"])
@require_login