aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBonfaceKilz2022-02-16 15:08:41 +0300
committerBonfaceKilz2022-03-12 15:33:09 +0300
commitb4caed11f5c1a302b620c3fbea4fda64b09ee600 (patch)
tree6daa75c94eb1f184230dc0459cfaebab6cb85d8a
parent08a27b65b91cec12ec2a44945090ca8b9fabd8dd (diff)
downloadgenenetwork3-b4caed11f5c1a302b620c3fbea4fda64b09ee600.tar.gz
Revert "db: Fetch correct sample data"
This reverts commit 710769e84b3bc6a2bdd66effdbac0659272ed511.
-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 6f979d8..f82beb0 100644
--- a/gn3/db/traits.py
+++ b/gn3/db/traits.py
@@ -771,7 +771,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.PhenotypeId = %(dataset_id)s "
+ "AND PublishXRef.InbredSetId = %(dataset_id)s "
"AND PublishData.StrainId = Strain.Id "
"ORDER BY Strain.Name")
with conn.cursor() as cursor: