diff options
author | zsloan | 2024-07-27 18:34:25 +0000 |
---|---|---|
committer | zsloan | 2024-07-27 18:34:25 +0000 |
commit | 875debdb852557bc8f6c68cbb85f9d9d92449ba0 (patch) | |
tree | 9addc09bedba43b7c7682b68d143e132e0a87572 | |
parent | 84cf6452b7a36a5f779c3761a9960d791de200d4 (diff) | |
download | genenetwork2-875debdb852557bc8f6c68cbb85f9d9d92449ba0.tar.gz |
Include CaseAttribute.InbredSetId in the query that fetches case attributes
Previously issues could occur if a difference InbredSet had the same CaseAtribute Id
-rw-r--r-- | gn2/wqflask/show_trait/SampleList.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gn2/wqflask/show_trait/SampleList.py b/gn2/wqflask/show_trait/SampleList.py index 64909d6e..200ff793 100644 --- a/gn2/wqflask/show_trait/SampleList.py +++ b/gn2/wqflask/show_trait/SampleList.py @@ -132,7 +132,8 @@ class SampleList: "CaseAttribute, CaseAttributeXRefNew WHERE " "CaseAttributeXRefNew.CaseAttributeId = CaseAttribute.CaseAttributeId " "AND CaseAttributeXRefNew.InbredSetId = %s " - "ORDER BY CaseAttribute.CaseAttributeId", (str(self.dataset.group.id),) + "AND CaseAttribute.InbredSetId = %s " + "ORDER BY CaseAttribute.CaseAttributeId", (str(self.dataset.group.id),str(self.dataset.group.id)) ) self.attributes = {} |