aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/correlations.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/db/correlations.py b/gn3/db/correlations.py
index 898de75..05c0809 100644
--- a/gn3/db/correlations.py
+++ b/gn3/db/correlations.py
@@ -399,12 +399,12 @@ def fetch_sample_ids(
"AND Species.name=%(species_name)s")
with conn.cursor() as cursor:
cursor.execute(
- return cursor.fetchall()
query,
{
"samples_names": tuple(sample_names),
"species_name": species_name
})
+ return tuple(row[0] for row in cursor.fetchall())
def build_query_sgo_lit_corr(
db_type: str, temp_table: str, sample_id_columns: str,