aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-10-04 18:18:08 +0000
committerzsloan2022-10-04 18:18:08 +0000
commitc38bee43c1256c3515bbd1d805745d8dfb8ce390 (patch)
tree50762c0dbc2d6981fe4cdc57c89056e0652ab9dd /wqflask
parent7172968b074de40d721864140a895e82fb9d4e07 (diff)
downloadgenenetwork2-c38bee43c1256c3515bbd1d805745d8dfb8ce390.tar.gz
Fix bug where dataset_name was being passed into get_samplelist query instead of group_id
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/api/router.py3
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()]