aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-09-09 21:33:23 +0000
committerzsloan2022-09-09 21:33:23 +0000
commitf2048ed7d3b7143869cebe228dec93b2f6fd3843 (patch)
tree8acd53403257246023a20844cabd695bdb8ea0b4 /wqflask
parent1b0d48112b3e574a2d2dc65fcaf2fb2e1746381f (diff)
downloadgenenetwork2-f2048ed7d3b7143869cebe228dec93b2f6fd3843.tar.gz
Fix bug in retrieve_other_names
After a recent change, it always tries to unpack 6 values from the query, but it should only be unpacking 4 values if not type ProbeSet (so it was throwing an error for anything not ProbeSet)
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/base/data_set.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index 67515111..dda5e8f9 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -652,6 +652,8 @@ class DataSet:
"ProbeSetFreeze.FullName = %s "
"OR ProbeSetFreeze.ShortName = %s)",
(self.name,)*3)
+ (self.id, self.name, self.fullname, self.shortname,
+ self.data_scale, self.tissue) = cursor.fetchone()
else:
self.tissue = "N/A"
cursor.execute(
@@ -660,8 +662,8 @@ class DataSet:
"WHERE (Name = %s OR FullName = "
"%s OR ShortName = %s)",
(self.name,)*3)
- (self.id, self.name, self.fullname, self.shortname,
- self.data_scale, self.tissue) = cursor.fetchone()
+ (self.id, self.name, self.fullname,
+ self.shortname) = cursor.fetchone()
except TypeError:
pass