aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2021-08-17 08:44:20 +0300
committerMuriithi Frederick Muriuki2021-08-17 08:44:20 +0300
commit5f56ac39c60b345e1a135c75f4bf35f8e881f4d6 (patch)
tree483284d09b3a78084434e83ee3942d7fd492d1c3 /gn3
parent89d4dbcc074765f07616fa5058ca7df1a5036d05 (diff)
downloadgenenetwork3-5f56ac39c60b345e1a135c75f4bf35f8e881f4d6.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,