From d467d314273b36189dd5936062f683fab57986f4 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Thu, 8 Sep 2022 13:59:27 +0300 Subject: fixup query formatting --- wqflask/wqflask/correlation/pre_computes.py | 3 +-- 1 file changed, 1 insertion(+), 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: -- cgit v1.2.3