From: Roland Häder Date: Sat, 11 Jan 2025 20:50:03 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a8287fbfcd5a4a44c82ba91743477c1f03ab9b98;p=fba.git Continued: - need to convert sqlite3.Row into dict to be able to change values --- 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: