fix: Use execute not query

This commit is contained in:
Nathan Woodburn 2025-02-09 22:10:44 +11:00
parent 98cf4345e0
commit c9aeeb15a9
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -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: