about summary refs log tree commit diff
path: root/uploader/genotypes/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-19 13:43:21 -0500
committerFrederick Muriuki Muriithi2024-09-19 13:44:06 -0500
commitd4fd4693423d99f500bfcd65cea42ed47e8d59e0 (patch)
tree129bb97d6026e1ec182677e3979c31b29550355b /uploader/genotypes/views.py
parent954f7e90db1904d6bcb906985928625ce50179dd (diff)
downloadgn-uploader-d4fd4693423d99f500bfcd65cea42ed47e8d59e0.tar.gz
Only show a single genotype dataset.
It is expected that there is only ever a single genotype dataset for
any one particular population.
Diffstat (limited to 'uploader/genotypes/views.py')
-rw-r--r--uploader/genotypes/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/uploader/genotypes/views.py b/uploader/genotypes/views.py
index 294da0e..8752b02 100644
--- a/uploader/genotypes/views.py
+++ b/uploader/genotypes/views.py
@@ -15,7 +15,7 @@ from uploader.population.models import (populations_by_species,
                                         population_by_species_and_id)
 
 from .models import (genotype_markers,
-                     genotype_datasets,
+                     genotype_dataset,
                      genotype_markers_count,
                      genocode_by_population)
 
@@ -98,7 +98,7 @@ def list_genotypes(species_id: int, population_id: int):
                                    conn, population_id),
                                total_markers=genotype_markers_count(
                                    conn, species_id),
-                               datasets=genotype_datasets(
+                               dataset=genotype_dataset(
                                    conn, species_id, population_id),
                                activelink="list-genotypes")