The library I'm using is this .
This is the code:
cur.execute("""SELECT COUNT(*) as total FROM tabela as t WHERE ... """, (v1, v2))
for (total) in cur:
if total > 0:
print('Existe')
The problem is that there is never any value.
PS: There are data in the table to bring a count > 0
What's wrong with this?