aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-09-12 06:47:32 +0300
committerFrederick Muriuki Muriithi2022-09-12 06:47:32 +0300
commit9a3df65704c73a325eb13abcdb184c8485736820 (patch)
tree843f76dc6c397da85c623ab6f837463327d4fee1
parent18f4682a27630bd81eb0b1514476c2cf0f663a63 (diff)
downloadgenenetwork2-9a3df65704c73a325eb13abcdb184c8485736820.tar.gz
Fix query: remove wrongly-placed comma
-rw-r--r--wqflask/base/data_set.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index 47c03b06..02e6cefe 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -780,9 +780,9 @@ class DataSet:
dataset_type = self.type
temp = ['T%s.value' % item for item in sample_ids_step]
if self.type == "Publish":
- query = "SELECT {}XRef.Id,".format(escape(self.type))
+ query = "SELECT {}XRef.Id".format(escape(self.type))
else:
- query = "SELECT {}.Name,".format(escape(dataset_type))
+ query = "SELECT {}.Name".format(escape(dataset_type))
data_start_pos = 1
query += ', '.join(temp)
query += ' FROM ({}, {}XRef, {}Freeze) '.format(*mescape(dataset_type,