diff options
author | BonfaceKilz | 2022-03-17 16:20:32 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-03-17 16:24:30 +0300 |
commit | ec1ca101b15421c83de6094984dcec985a395d71 (patch) | |
tree | cbd3a42720a8f9a8a2bb9663b4dec7320c136733 | |
parent | d69db637f10b10aadde6c03c2b2df205263fd13d (diff) | |
download | genenetwork2-ec1ca101b15421c83de6094984dcec985a395d71.tar.gz |
Create a db connection correctly
* wqflask/maintenance/quantile_normalize.py: Fix how the cursor is
created.
-rw-r--r-- | wqflask/maintenance/quantile_normalize.py | 2 |
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( |