From 7e54ea61c374e15df31c41c1ca87a001acd85242 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 17 Sep 2024 12:46:31 -0500 Subject: UI Improvements: Enumerate data in tables. --- uploader/species/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'uploader/species') 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("/", methods=["GET"]) @require_login -- cgit v1.2.3