aboutsummaryrefslogtreecommitdiff
path: root/uploader/phenotypes
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-12-10 15:48:08 -0600
committerFrederick Muriuki Muriithi2024-12-10 15:48:08 -0600
commit592096d059360ef85741107eb4fb8a5e3c5839c8 (patch)
treed6e991507af0642f27c3123b46d7dce30a409e46 /uploader/phenotypes
parente994a879c7e9f6d0a02603ccfa1476cd07a6cffc (diff)
downloadgn-uploader-592096d059360ef85741107eb4fb8a5e3c5839c8.tar.gz
Use specialised template renderer for phenotypes.
Use the specialised template renderer to keep the rendering consistent.
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