aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/data_set.py
diff options
context:
space:
mode:
authorzsloan2020-10-20 14:10:38 -0500
committerzsloan2020-10-20 14:10:38 -0500
commit3c1e8b1a4892389d4357beac486610eb17717e28 (patch)
tree3b00032a71bb79a16f79d0f36adab6d8163cf398 /wqflask/base/data_set.py
parent02b7af0c4c44ec7e565e7c4bb66287ed86b432b2 (diff)
parent3f7d7e0f996c76f3c03d03970982656b5eb112d7 (diff)
downloadgenenetwork2-3c1e8b1a4892389d4357beac486610eb17717e28.tar.gz
Merge branch 'testing' of github.com:genenetwork/genenetwork2 into testing
Diffstat (limited to 'wqflask/base/data_set.py')
-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 e0ef559c..2f1549ae 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -150,10 +150,12 @@ Publish or ProbeSet. E.g.
"geno": "Geno",
}
+ group_name = name
if t in ['pheno', 'other_pheno']:
- name = name.replace("Publish", "")
+ group_name = name.replace("Publish", "")
- if bool(len(g.db.execute(sql_query_mapping[t].format(name)).fetchone())):
+ results = g.db.execute(sql_query_mapping[t].format(group_name)).fetchone()
+ if results:
self.datasets[name] = dataset_name_mapping[t]
self.redis_instance.set("dataset_structure", json.dumps(self.datasets))
return True