aboutsummaryrefslogtreecommitdiff
path: root/wqflask/__init__.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-09-21 12:33:20 +0300
committerFrederick Muriuki Muriithi2022-09-21 12:37:36 +0300
commit8a51d58ed66593a420740b347ef841454e254237 (patch)
tree7b184d39444d3cac33c8ff54ab013ba9c3fb9a6c /wqflask/__init__.py
parent347f874a82275ae9d6069f00d39b8e1737d5b3e7 (diff)
downloadgenenetwork2-8a51d58ed66593a420740b347ef841454e254237.tar.gz
Refactor: pass redis and db connections as argument
Pass the redis and database connection/cursors as arguments to the class methods, and do not retain a copy of the connections/cursors. This allows us to do the connection management in the context managers elsewhere - ideally, at the top-level. For now the context manager is within the `create_dataset` function, but this should be moved out to a higher level once the lower levels are verified to be working as expected.
Diffstat (limited to 'wqflask/__init__.py')
0 files changed, 0 insertions, 0 deletions