From c9aeeb15a986ae6ccd7b2d3d27a8e1e37631d9d5 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sun, 9 Feb 2025 22:10:44 +1100 Subject: [PATCH] fix: Use execute not query --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f44a109..23eefa7 100644 --- a/main.py +++ b/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: