aboutsummaryrefslogtreecommitdiff
path: root/uploader/samples/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-23 14:10:17 -0500
committerFrederick Muriuki Muriithi2024-09-23 14:10:17 -0500
commit3bec3b312a1e235247f1431d4351db5efe7a785d (patch)
treecd93e561d43e35e9389625220012b35094d900d1 /uploader/samples/views.py
parent27eec3300eddbc17214b3ff3ffbd8bea867db401 (diff)
downloadgn-uploader-3bec3b312a1e235247f1431d4351db5efe7a785d.tar.gz
UI: Indicate currently active menu.
Diffstat (limited to 'uploader/samples/views.py')
-rw-r--r--uploader/samples/views.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/uploader/samples/views.py b/uploader/samples/views.py
index fd3c601..9ba1df8 100644
--- a/uploader/samples/views.py
+++ b/uploader/samples/views.py
@@ -8,17 +8,16 @@ from typing import Iterator
import MySQLdb as mdb
from redis import Redis
from MySQLdb.cursors import DictCursor
-from flask import (
- flash,
- request,
- url_for,
- redirect,
- Blueprint,
- render_template,
- current_app as app)
+from flask import (flash,
+ request,
+ url_for,
+ redirect,
+ Blueprint,
+ current_app as app)
from uploader import jobs
from uploader.files import save_file
+from uploader.ui import make_template_renderer
from uploader.authorisation import require_login
from uploader.input_validation import is_integer_input
from uploader.datautils import order_by_family, enumerate_sequence
@@ -37,6 +36,7 @@ from uploader.population.models import(save_population,
from .models import samples_by_species_and_population
samplesbp = Blueprint("samples", __name__)
+render_template = make_template_renderer("samples")
@samplesbp.route("/samples", methods=["GET"])
@require_login