diff options
-rw-r--r-- | wqflask/wqflask/api/router.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/wqflask/api/router.py b/wqflask/wqflask/api/router.py index 41901159..2c1c2614 100644 --- a/wqflask/wqflask/api/router.py +++ b/wqflask/wqflask/api/router.py @@ -969,12 +969,13 @@ def get_dataset_trait_ids(dataset_name, start_vars): def get_samplelist(dataset_name): + group_id = get_group_id_from_dataset(dataset_name) with database_connection() as conn, conn.cursor() as cursor: cursor.execute( "SELECT Strain.Name FROM Strain, StrainXRef " "WHERE StrainXRef.StrainId = Strain.Id AND " "StrainXRef.InbredSetId = %s", - (dataset_name,) + (group_id,) ) # sample list return [result[0] for result in cursor.fetchall()] |