diff options
author | Frederick Muriuki Muriithi | 2024-09-17 12:46:31 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-09-17 12:47:58 -0500 |
commit | 7e54ea61c374e15df31c41c1ca87a001acd85242 (patch) | |
tree | 7fa48f39cbb99671dc31aa0033bb3e0cc11e2695 /uploader/samples | |
parent | 879fbc4d6086860e2de76a4f74509a1bb8642af5 (diff) | |
download | gn-uploader-7e54ea61c374e15df31c41c1ca87a001acd85242.tar.gz |
UI Improvements: Enumerate data in tables.
Diffstat (limited to 'uploader/samples')
-rw-r--r-- | uploader/samples/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/uploader/samples/views.py b/uploader/samples/views.py index 4332c21..fd3c601 100644 --- a/uploader/samples/views.py +++ b/uploader/samples/views.py @@ -19,9 +19,9 @@ from flask import ( from uploader import jobs from uploader.files import save_file -from uploader.datautils import order_by_family from uploader.authorisation import require_login from uploader.input_validation import is_integer_input +from uploader.datautils import order_by_family, enumerate_sequence from uploader.db_utils import ( with_db_connection, database_connection, @@ -107,8 +107,8 @@ def list_samples(species_id: int, population_id: int): "species.populations.samples.select_population", species_id=species_id)) - all_samples = samples_by_species_and_population( - conn, species_id, population_id) + all_samples = enumerate_sequence(samples_by_species_and_population( + conn, species_id, population_id)) total_samples = len(all_samples) offset = int(request.args.get("from") or 0) if offset < 0: |