From 9a3df65704c73a325eb13abcdb184c8485736820 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 12 Sep 2022 06:47:32 +0300 Subject: Fix query: remove wrongly-placed comma --- wqflask/base/data_set.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wqflask') 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, -- cgit v1.2.3