fix: Use execute not query
This commit is contained in:
parent
98cf4345e0
commit
c9aeeb15a9
2
main.py
2
main.py
@ -263,7 +263,7 @@ def getFirstMissingBlock() -> int:
|
||||
"""Finds the first missing block height in the database."""
|
||||
|
||||
# Fetch all existing block heights in ascending order
|
||||
result = dbGet.query("SELECT height FROM blocks ORDER BY height ASC").result
|
||||
result = dbGet.execute("SELECT height FROM blocks ORDER BY height ASC").result
|
||||
heights = [row[0] for row in result]
|
||||
|
||||
if not heights:
|
||||
|
Loading…
Reference in New Issue
Block a user