aboutsummaryrefslogtreecommitdiff
path: root/uploader/population
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/population
parent879fbc4d6086860e2de76a4f74509a1bb8642af5 (diff)
downloadgn-uploader-7e54ea61c374e15df31c41c1ca87a001acd85242.tar.gz
UI Improvements: Enumerate data in tables.
Diffstat (limited to 'uploader/population')
-rw-r--r--uploader/population/views.py4
1 files changed, 3 insertions, 1 deletions
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")