From 5f20cedef9fdb82ddde00648518acac7c0c7897b Mon Sep 17 00:00:00 2001 From: Maria Koval Date: Sun, 12 Mar 2023 00:05:09 +0300 Subject: [PATCH] query fix --- just_lipidmetabolism.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/just_lipidmetabolism.py b/just_lipidmetabolism.py index 6241d93..70e6a53 100644 --- a/just_lipidmetabolism.py +++ b/just_lipidmetabolism.py @@ -122,7 +122,7 @@ def annotate (self, input_data:dict): query:str = "SELECT rsids.risk_allele, gene, genotype, genotype_specific_conclusion, rsid_conclusion, weight, " \ " pmids, population, populations, p_value FROM rsids, studies, " \ f" weight WHERE rsids.rsid = '{rsid}' AND weight.rsid = '{rsid}' AND studies.snp= '{rsid}' " \ - f" AND risk_allele='{alt}' AND zygot ='{zygot}' AND allele='{alt}'; " + f" AND weight.risk_allele='{alt}' AND zygosity ='{zygot}' AND allele='{alt}'; " self.lipid_cursor.execute(query) rows:list[tuple] = self.lipid_cursor.fetchall()