diff options
author | Frederick Muriuki Muriithi | 2022-09-21 12:33:20 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-09-21 12:37:36 +0300 |
commit | 8a51d58ed66593a420740b347ef841454e254237 (patch) | |
tree | 7b184d39444d3cac33c8ff54ab013ba9c3fb9a6c /wqflask/__init__.py | |
parent | 347f874a82275ae9d6069f00d39b8e1737d5b3e7 (diff) | |
download | genenetwork2-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