From a8287fbfcd5a4a44c82ba91743477c1f03ab9b98 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 11 Jan 2025 21:50:03 +0100 Subject: [PATCH] Continued: - need to convert sqlite3.Row into dict to be able to change values --- fba/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fba/commands.py b/fba/commands.py index 673470b..87eaaeb 100644 --- a/fba/commands.py +++ b/fba/commands.py @@ -301,7 +301,7 @@ def fetch_blocks(args: argparse.Namespace) -> int: database.cursor.execute("SELECT domain, software, origin, nodeinfo_url FROM instances WHERE software IN ('pleroma', 'mastodon', 'lemmy', 'friendica', 'misskey', 'piefed', 'typecho') AND nodeinfo_url IS NOT NULL ORDER BY last_blocked ASC, total_blocks DESC") # Load all rows - rows = database.cursor.fetchall() + rows = [dict(row) for row in database.cursor.fetchall()] logger.info("Checking %d entries ...", len(rows)) for row in rows: -- 2.39.5