Skip to content

Commit

Permalink
query fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marfantyk committed Mar 11, 2023
1 parent 12afafb commit 5f20ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion just_lipidmetabolism.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5f20ced

Please sign in to comment.