aboutsummaryrefslogtreecommitdiff
path: root/uploader/species
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-17 12:46:31 -0500
committerFrederick Muriuki Muriithi2024-09-17 12:47:58 -0500
commit7e54ea61c374e15df31c41c1ca87a001acd85242 (patch)
tree7fa48f39cbb99671dc31aa0033bb3e0cc11e2695 /uploader/species
parent879fbc4d6086860e2de76a4f74509a1bb8642af5 (diff)
downloadgn-uploader-7e54ea61c374e15df31c41c1ca87a001acd85242.tar.gz
UI Improvements: Enumerate data in tables.
Diffstat (limited to 'uploader/species')
-rw-r--r--uploader/species/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/uploader/species/views.py b/uploader/species/views.py
index 55b0dd3..08d3728 100644
--- a/uploader/species/views.py
+++ b/uploader/species/views.py
@@ -8,11 +8,11 @@ from flask import (flash,
current_app as app)
from uploader.population import popbp
-from uploader.datautils import order_by_family
from uploader.ui import make_template_renderer
from uploader.db_utils import database_connection
from uploader.oauth2.client import oauth2_get, oauth2_post
from uploader.authorisation import require_login, require_token
+from uploader.datautils import order_by_family, enumerate_sequence
from .models import (all_species,
save_species,
@@ -31,7 +31,7 @@ def list_species():
"""List and display all the species in the database."""
with database_connection(app.config["SQL_URI"]) as conn:
return render_template("species/list-species.html",
- allspecies=all_species(conn))
+ allspecies=enumerate_sequence(all_species(conn)))
@speciesbp.route("/<int:species_id>", methods=["GET"])
@require_login