diff options
author | GN2 | 2024-03-11 21:52:03 +0000 |
---|---|---|
committer | Pjotr Prins | 2024-03-14 16:31:48 -0500 |
commit | ca89d146ba91b44bbd69944e05684e2b9814fd0a (patch) | |
tree | 69de377bb408265ac1d58258adb376eaf3542ad7 /gn2/wqflask/show_trait | |
parent | 9583c7d21bd01f4b838a7281710952d3812223fe (diff) | |
download | genenetwork2-ca89d146ba91b44bbd69944e05684e2b9814fd0a.tar.gz |
Disable CaseAttributeId - because it needs an update to the database
and it is not clear why. @bonfacem.
Diffstat (limited to 'gn2/wqflask/show_trait')
-rw-r--r-- | gn2/wqflask/show_trait/SampleList.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gn2/wqflask/show_trait/SampleList.py b/gn2/wqflask/show_trait/SampleList.py index 64fc8fe6..111537c1 100644 --- a/gn2/wqflask/show_trait/SampleList.py +++ b/gn2/wqflask/show_trait/SampleList.py @@ -125,13 +125,13 @@ class SampleList: # Get attribute names and distinct values for each attribute with database_connection(get_setting("SQL_URI")) as conn, conn.cursor() as cursor: cursor.execute( - "SELECT DISTINCT CaseAttribute.CaseAttributeId, " + "SELECT DISTINCT CaseAttribute.Id, " "CaseAttribute.Name, CaseAttribute.Description, " "CaseAttributeXRefNew.Value FROM " "CaseAttribute, CaseAttributeXRefNew WHERE " - "CaseAttributeXRefNew.CaseAttributeId = CaseAttribute.CaseAttributeId " + "CaseAttributeXRefNew.CaseAttributeId = CaseAttribute.Id " "AND CaseAttributeXRefNew.InbredSetId = %s " - "ORDER BY CaseAttribute.CaseAttributeId", (str(self.dataset.group.id),) + "ORDER BY CaseAttribute.Id", (str(self.dataset.group.id),) ) self.attributes = {} |