diff options
author | Munyoki Kilyungi | 2022-09-01 16:29:19 +0300 |
---|---|---|
committer | BonfaceKilz | 2022-09-08 14:26:19 +0300 |
commit | 026ceff5ea71f07f32db88e01fadfe38dbc39c75 (patch) | |
tree | d9aeea01d7b8eef8300599f5460af91c847127a9 /wqflask/utility/authentication_tools.py | |
parent | f20213ac7f9f37b0fed97e670db5de904efeb920 (diff) | |
download | genenetwork2-026ceff5ea71f07f32db88e01fadfe38dbc39c75.tar.gz |
Replace g.db with database_connection() context manager
* wqflask/wqflask/update_search_results.py: Replace "Flask" and "g"
import with "database_connection".
(GSearch.__init__): Reformat SQL. Rename "re" to "results" since "re"
is part of the stdlib.
* wqflask/wqflask/marker_regression/rqtl_mapping.py: Replace flask.g
with database_connection.
(write_covarstruct_file): Replace g.db with database_connection().
* wqflask/wqflask/search_results.py: Replace "Flask" and "g" imports
with "database_connection" import.
(trait_info_str): Replace g.db with database_connection.
* wqflask/wqflask/docs.py (Docs): Use dababase_connection() context
manager.
(update_text): Ditto.
* wqflask/wqflask/marker_regression/display_mapping_results.py:
Replace "Flask" and "g" import with "database_connection".
(DisplayMappingResults.__init__): Use database_connection.
(DisplayMappingResults.drawSNPTrackNew): Ditto.
Diffstat (limited to 'wqflask/utility/authentication_tools.py')
-rw-r--r-- | wqflask/utility/authentication_tools.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wqflask/utility/authentication_tools.py b/wqflask/utility/authentication_tools.py index afea69e1..96cc0b00 100644 --- a/wqflask/utility/authentication_tools.py +++ b/wqflask/utility/authentication_tools.py @@ -2,6 +2,7 @@ import json import requests from flask import g +from wqflask.database import database_connection from base import webqtlConfig from utility.redis_tools import (get_redis_conn, |