aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/data_set.py
diff options
context:
space:
mode:
authorPjotr Prins2016-06-23 12:51:12 +0000
committerPjotr Prins2016-06-23 12:51:12 +0000
commit923e94c39f5768f836dbf5fc29b0186c13ccc86b (patch)
tree1269aa252ee1a804386dc2f16f2f60d31779f049 /wqflask/base/data_set.py
parentf2bbefa47c00ac7344e8172891035a4f82c6d805 (diff)
downloadgenenetwork2-923e94c39f5768f836dbf5fc29b0186c13ccc86b.tar.gz
Logger: SQL
Diffstat (limited to 'wqflask/base/data_set.py')
-rw-r--r--wqflask/base/data_set.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index a50f5235..ffc5917a 100644
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -1137,7 +1137,7 @@ class TempDataSet(DataSet):
return desc
def get_group(self):
- self.cursor.execute("""
+ query = """
SELECT
InbredSet.Name, InbredSet.Id
FROM
@@ -1145,9 +1145,9 @@ class TempDataSet(DataSet):
WHERE
Temp.InbredSetId = InbredSet.Id AND
Temp.Name = "%s"
- """, self.name)
- self.group, self.group_id = self.cursor.fetchone()
- #return self.group
+ """ % self.name
+ logger.sql(query)
+ self.group, self.group_id = g.db.execute(query).fetchone()
def retrieve_sample_data(self, trait):
query = """