aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2020-08-25 18:35:44 -0500
committerzsloan2020-08-25 18:35:44 -0500
commit301bdd2f43de9121cd040dc6eab82a51eafae92f (patch)
tree5f537b802fa8b894485da4173decf0c6a0b2cdda /wqflask
parentd96fb158199c298494a7b15fb0edd63a937fd3cf (diff)
downloadgenenetwork2-301bdd2f43de9121cd040dc6eab82a51eafae92f.tar.gz
Fixed issue in DatasetType that caused an error when trying to load new
datasets * wqflask/base/data_set.py - Added fetchone() to g.db.execute() which is what was causing the error
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/base/data_set.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index cfba9104..afffe780 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -152,7 +152,8 @@ Publish or ProbeSet. E.g.
if t in ['pheno', 'other_pheno']:
name = name.replace("Publish", "")
- if bool(len(g.db.execute(sql_query_mapping[t].format(name)))):
+
+ if bool(len(g.db.execute(sql_query_mapping[t].format(name)).fetchone())):
self.datasets[name] = dataset_name_mapping[t]
self.redis_instance.set("dataset_structure", json.dumps(self.datasets))
return True