diff options
author | Frederick Muriuki Muriithi | 2022-09-12 07:42:24 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-09-12 07:42:24 +0300 |
commit | 9cd9b91412734f8f084439690082f9e699ebd89e (patch) | |
tree | 6813face40ec433c6d77045d5c97f00faee7deef /wqflask/base/data_set.py | |
parent | 185fc586d0f1c1faee4418805a1788e8d57680d8 (diff) | |
download | genenetwork2-9cd9b91412734f8f084439690082f9e699ebd89e.tar.gz |
Fix query: Add comma to separate columns.
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 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)) |