aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/quantile_normalize.py
diff options
context:
space:
mode:
authorBonfaceKilz2022-03-17 16:20:32 +0300
committerBonfaceKilz2022-03-17 16:24:30 +0300
commitec1ca101b15421c83de6094984dcec985a395d71 (patch)
treecbd3a42720a8f9a8a2bb9663b4dec7320c136733 /wqflask/maintenance/quantile_normalize.py
parentd69db637f10b10aadde6c03c2b2df205263fd13d (diff)
downloadgenenetwork2-ec1ca101b15421c83de6094984dcec985a395d71.tar.gz
Create a db connection correctly
* wqflask/maintenance/quantile_normalize.py: Fix how the cursor is created.
Diffstat (limited to 'wqflask/maintenance/quantile_normalize.py')
-rw-r--r--wqflask/maintenance/quantile_normalize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/maintenance/quantile_normalize.py b/wqflask/maintenance/quantile_normalize.py
index 2e2b0ec3..90ec72de 100644
--- a/wqflask/maintenance/quantile_normalize.py
+++ b/wqflask/maintenance/quantile_normalize.py
@@ -100,7 +100,7 @@ def set_data(cursor, dataset_name):
if __name__ == '__main__':
with database_connection as conn:
- with conn.cursor as cursor:
+ with conn.cursor() as cursor:
success, _ = bulk(es, set_data(cursor, sys.argv[1]))
response = es.search(