aboutsummaryrefslogtreecommitdiff
path: root/uploader/species
diff options
context:
space:
mode:
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):