diff options
author | BonfaceKilz | 2020-08-28 14:50:37 +0300 |
---|---|---|
committer | BonfaceKilz | 2020-08-28 14:50:37 +0300 |
commit | 45323bed6b567f8bd3c87f5fbe610cd602d228bc (patch) | |
tree | a0429091e044d0a2a31e5d5ec773ad777891adef /wqflask/base/data_set.py | |
parent | 70dbeeb5832711ed5271434e482c18bc7ea095b8 (diff) | |
parent | 433b41086d3f61a94778d7b244c0d0276794e59e (diff) | |
download | genenetwork2-45323bed6b567f8bd3c87f5fbe610cd602d228bc.tar.gz |
Merge branch 'testing' into build/python3-migration
Diffstat (limited to 'wqflask/base/data_set.py')
-rw-r--r-- | wqflask/base/data_set.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py index 07704e4c..295f5c48 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 |