aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/data_set.py
diff options
context:
space:
mode:
authorZachary Sloan2012-12-06 14:27:53 -0600
committerZachary Sloan2012-12-06 14:27:53 -0600
commit6749d3c9be414ad15b9c39b2d1817ca27566d959 (patch)
treeba7501fd2a6de45f52319927e634c150342d940b /wqflask/base/data_set.py
parenta7cc1119ebfbfab3ba5260be75c87cd4496f09b7 (diff)
downloadgenenetwork2-6749d3c9be414ad15b9c39b2d1817ca27566d959.tar.gz
Made many small changes to show_trait/data_set/search_results/trait to
remove use of the formData object and cursor
Diffstat (limited to 'wqflask/base/data_set.py')
-rwxr-xr-xwqflask/base/data_set.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/wqflask/base/data_set.py b/wqflask/base/data_set.py
index 68f5e5ed..14e4055e 100755
--- a/wqflask/base/data_set.py
+++ b/wqflask/base/data_set.py
@@ -42,12 +42,13 @@ def create_dataset(dataset_name):
#cursor = db_conn.cursor()
print("dataset_name:", dataset_name)
- dataset_type = g.db.execute("""
+ query = """
SELECT DBType.Name
FROM DBList, DBType
- WHERE DBList.Name = %s and
+ WHERE DBList.Name = '%s' and
DBType.Id = DBList.DBTypeId
- """, (dataset_name)).fetchone().Name
+ """ % (escape(dataset_name))
+ dataset_type = g.db.execute(query).fetchone().Name
#dataset_type = cursor.fetchone()[0]
print("[blubber] dataset_type:", pf(dataset_type))