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/population/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'uploader/population') diff --git a/uploader/population/views.py b/uploader/population/views.py index 5136ee0..39a5762 100644 --- a/uploader/population/views.py +++ b/uploader/population/views.py @@ -19,6 +19,7 @@ from uploader.ui import make_template_renderer from uploader.authorisation import require_login from uploader.genotypes.views import genotypesbp from uploader.db_utils import database_connection +from uploader.datautils import enumerate_sequence from uploader.species.models import (all_species, species_by_id, order_species_by_family) @@ -64,7 +65,8 @@ def list_species_populations(species_id: int): return render_template( "populations/list-populations.html", species=species, - populations=populations_by_species(conn, species_id), + populations=enumerate_sequence(populations_by_species( + conn, species_id)), activelink="list-populations") -- cgit v1.2.3