aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-09-12 07:42:24 +0300
committerFrederick Muriuki Muriithi2022-09-12 07:42:24 +0300
commit9cd9b91412734f8f084439690082f9e699ebd89e (patch)
tree6813face40ec433c6d77045d5c97f00faee7deef /wqflask
parent185fc586d0f1c1faee4418805a1788e8d57680d8 (diff)
downloadgenenetwork2-9cd9b91412734f8f084439690082f9e699ebd89e.tar.gz
Fix query: Add comma to separate columns.
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 02e6cefe..9685e33e 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -784,7 +784,8 @@ class DataSet:
else:
query = "SELECT {}.Name".format(escape(dataset_type))
data_start_pos = 1
- query += ', '.join(temp)
+ if len(temp) > 0:
+ query = query + ", " + ', '.join(temp)
query += ' FROM ({}, {}XRef, {}Freeze) '.format(*mescape(dataset_type,
self.type,
self.type))