]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Sat, 11 Jan 2025 20:50:03 +0000 (21:50 +0100)
committerRoland Häder <roland@mxchange.org>
Sat, 11 Jan 2025 20:50:03 +0000 (21:50 +0100)
- need to convert sqlite3.Row into dict to be able to change values

fba/commands.py

index 673470b096a556bbc34338a504fff2cd6d4131c9..87eaaebd1b11e7236c92734577a6428cf97c9328 100644 (file)
@@ -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: