diff options
author | Frederick Muriuki Muriithi | 2022-09-20 21:50:34 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-09-20 21:50:34 +0300 |
commit | 4fafdfd8487ddf61105b2a5ca92534c8014c1db4 (patch) | |
tree | 695e5f2f390a9ca2bb1b01b8a86aaad8ee7971e4 /wqflask/base | |
parent | 3a8d99868cbc03e5ad6edced016504ed549ef468 (diff) | |
download | genenetwork2-4fafdfd8487ddf61105b2a5ca92534c8014c1db4.tar.gz |
Use member variable `self.conn` to avoid test failure
Use the `self.conn` variable to prevent test from failing.
Diffstat (limited to 'wqflask/base')
-rw-r--r-- | wqflask/base/species.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/base/species.py b/wqflask/base/species.py index 0ee04630..403e0bbb 100644 --- a/wqflask/base/species.py +++ b/wqflask/base/species.py @@ -47,7 +47,7 @@ class Chromosomes: def chromosomes(self) -> OrderedDict: """Lazily fetch the chromosomes""" chromosomes = OrderedDict() - with database_connection() as conn, conn.cursor() as cursor: + with self.conn.cursor() as cursor: if self.species is not None: cursor.execute( "SELECT Chr_Length.Name, Chr_Length.OrderId, Length " |