aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorBonfaceKilz2022-02-03 16:04:22 +0300
committerBonfaceKilz2022-02-03 16:04:22 +0300
commit710769e84b3bc6a2bdd66effdbac0659272ed511 (patch)
treefd9135ca841774a00ccd45eee51620a9954dde01 /gn3/db
parent750bc975650d27e67d1d0b3f6ecaab6582304b44 (diff)
downloadgenenetwork3-710769e84b3bc6a2bdd66effdbac0659272ed511.tar.gz
db: Fetch correct sample data
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/traits.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/db/traits.py b/gn3/db/traits.py
index 062b68c..b201f1f 100644
--- a/gn3/db/traits.py
+++ b/gn3/db/traits.py
@@ -723,7 +723,7 @@ def retrieve_publish_trait_data(trait_info: Dict, conn: Any):
"AND NStrain.StrainId = PublishData.StrainId) "
"WHERE PublishData.Id = PublishXRef.DataId "
"AND PublishXRef.Id = %(trait_name)s "
- "AND PublishXRef.InbredSetId = %(dataset_id)s "
+ "AND PublishXRef.PhenotypeId = %(dataset_id)s "
"AND PublishData.StrainId = Strain.Id "
"ORDER BY Strain.Name")
with conn.cursor() as cursor: