Skip to content

Commit

Permalink
MRG: use single quotes inside sqlite statements (#3556)
Browse files Browse the repository at this point in the history
Fixes #3555
  • Loading branch information
ctb authored Feb 26, 2025
1 parent d220ede commit 4045737
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sourmash/tax/tax_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,7 @@ def __init__(self, conn, *, table_name=None):
# get available ranks...
ranks = set()
for column, rank in zip(self.columns, RankLineageInfo().taxlist):
query = f'SELECT COUNT({column}) FROM {self.table_name} WHERE {column} IS NOT NULL AND {column} != ""'
query = f"SELECT COUNT({column}) FROM {self.table_name} WHERE {column} IS NOT NULL AND {column} != ''"
c.execute(query)
(cnt,) = c.fetchone()
if cnt:
Expand Down

0 comments on commit 4045737

Please sign in to comment.