aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2021-08-17 08:44:20 +0300
committerArun Isaac2021-08-18 08:47:34 +0000
commit0fbbfa9181229a89da566adcf4bed24281da1e80 (patch)
tree483284d09b3a78084434e83ee3942d7fd492d1c3 /gn3
parent3d1595d1fcc5085621ef8ce41a007d283595c7c6 (diff)
downloadgenenetwork3-0fbbfa9181229a89da566adcf4bed24281da1e80.tar.gz
Fix errors: add in missing parenthesis
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/clustering.gmi * Call the `cursor.fetchone()` function to get results. Without the parenthesis, the code was trying to use the function itself as the results, which was a bug, and would lead to failure.
Diffstat (limited to 'gn3')
-rw-r--r--gn3/db/datasets.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/gn3/db/datasets.py b/gn3/db/datasets.py
index 53d6811..4a05499 100644
--- a/gn3/db/datasets.py
+++ b/gn3/db/datasets.py
@@ -25,7 +25,7 @@ def retrieve_probeset_trait_dataset_name(
return dict(zip(
["dataset_id", "dataset_name", "dataset_fullname",
"dataset_shortname", "dataset_datascale"],
- cursor.fetchone))
+ cursor.fetchone()))
def retrieve_publish_trait_dataset_name(
threshold: int, name: str, connection: Any):
@@ -49,7 +49,7 @@ def retrieve_publish_trait_dataset_name(
return dict(zip(
["dataset_id", "dataset_name", "dataset_fullname",
"dataset_shortname"],
- cursor.fetchone))
+ cursor.fetchone()))
def retrieve_geno_trait_dataset_name(
threshold: int, name: str, connection: Any):
@@ -73,7 +73,7 @@ def retrieve_geno_trait_dataset_name(
return dict(zip(
["dataset_id", "dataset_name", "dataset_fullname",
"dataset_shortname"],
- cursor.fetchone))
+ cursor.fetchone()))
def retrieve_temp_trait_dataset_name(
threshold: int, name: str, connection: Any):
@@ -97,7 +97,7 @@ def retrieve_temp_trait_dataset_name(
return dict(zip(
["dataset_id", "dataset_name", "dataset_fullname",
"dataset_shortname"],
- cursor.fetchone))
+ cursor.fetchone()))
def retrieve_dataset_name(
trait_type: str, threshold: int, trait_name: str, dataset_name: str,