From 6848b3f6d69ba2e032a7edfea513d0a225225827 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 14 Dec 2021 13:48:14 +0300 Subject: Fix bug: expects int, gets object - Fixed. --- gn3/db/correlations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gn3/db/correlations.py b/gn3/db/correlations.py index 338c0f2..5361a1e 100644 --- a/gn3/db/correlations.py +++ b/gn3/db/correlations.py @@ -158,7 +158,7 @@ def fetch_symbol_value_pair_dict( if data_id_dict.get(symbol) is not None } query = "SELECT Id, value FROM TissueProbeSetData WHERE Id IN ({})".format( - ",".join(f"%(id{i})s" for i in range(data_ids.values()))) + ",".join(f"%(id{i})s" for i in range(len(data_ids.values())))) with conn.cursor() as cursor: cursor.execute( query, -- cgit v1.2.3