aboutsummaryrefslogtreecommitdiff
path: root/uploader/species
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-03 11:30:07 -0500
committerFrederick Muriuki Muriithi2024-09-03 13:51:31 -0500
commit64790126035e2ee1a10693aad9bd4045fd575727 (patch)
tree6a921f22470d974b91ff5d81742c52dda6b9a1ff /uploader/species
parentea7944b5f5e536c3ad0829dff674f91ba25b548e (diff)
downloadgn-uploader-64790126035e2ee1a10693aad9bd4045fd575727.tar.gz
Enable third level of breadcrumbs.
Diffstat (limited to 'uploader/species')
-rw-r--r--uploader/species/views.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/uploader/species/views.py b/uploader/species/views.py
index 4372504..f2d7545 100644
--- a/uploader/species/views.py
+++ b/uploader/species/views.py
@@ -18,7 +18,12 @@ speciesbp = Blueprint("species", __name__)
def render_template(template, **kwargs):
"""Render template for species."""
- return flask_render_template(template, **kwargs, activelink="species")
+ return flask_render_template(
+ template,
+ **{
+ **kwargs,
+ "activelink": kwargs.get("activelink", "species")
+ })
@speciesbp.route("/", methods=["GET"])
@@ -43,7 +48,8 @@ def create_species():
# https://rest.uniprot.org/taxonomy/<taxonID> e.g.
# https://rest.uniprot.org/taxonomy/6239
if request.method == "GET":
- return render_template("species/create-species.html")
+ return render_template("species/create-species.html",
+ activelink="create-species")
with (database_connection(app.config["SQL_URI"]) as conn,
conn.cursor() as cursor):