aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2022-09-08 13:59:27 +0300
committerAlexander_Kabui2022-09-08 13:59:27 +0300
commitd467d314273b36189dd5936062f683fab57986f4 (patch)
treee5b876646163b8084b1a10815fcb1e37f8e444fa
parent551fd9867b924b6cee5f9030a421bc22dd87c2cd (diff)
downloadgenenetwork2-d467d314273b36189dd5936062f683fab57986f4.tar.gz
fixup query formatting
-rw-r--r--wqflask/wqflask/correlation/pre_computes.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/wqflask/wqflask/correlation/pre_computes.py b/wqflask/wqflask/correlation/pre_computes.py
index b8a78a45..1c52a0f5 100644
--- a/wqflask/wqflask/correlation/pre_computes.py
+++ b/wqflask/wqflask/correlation/pre_computes.py
@@ -175,8 +175,7 @@ def fetch_text_file(dataset_name, conn, text_dir=TEXTDIR):
"""fetch textfiles with strain vals if exists"""
with conn.cursor() as cursor:
- cursor.execute(
- 'SELECT Id, FullName FROM ProbeSetFreeze WHERE Name = "%s"' % dataset_name)
+ cursor.execute('SELECT Id, FullName FROM ProbeSetFreeze WHERE Name = %s', (dataset_name,))
results = cursor.fetchone()
if results:
try: