diff options
author | Frederick Muriuki Muriithi | 2023-07-12 15:46:53 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-07-12 15:46:53 +0300 |
commit | e926411480c69c0c420fd3c781664120bfd8e21b (patch) | |
tree | ecd1637ba28dba2da971a3027b492a21ced3c9b0 /gn3/db/correlations.py | |
parent | f920f9ad6d74648a0f572f3e937cfe1ea6578b3f (diff) | |
download | genenetwork3-e926411480c69c0c420fd3c781664120bfd8e21b.tar.gz |
Bug: Set the `data_exists` variable within the context manager
The `cursor.fetchone()` call that was used as the condition to the `if` was
called outside of the context manager, and therefore would always give a
non-truthy value at best and an inconsistent result at worst.
This commit gets the value before the context manager has exited and stores it
for later use.
Diffstat (limited to 'gn3/db/correlations.py')
0 files changed, 0 insertions, 0 deletions