]> git.mxchange.org Git - fba.git/commitdiff
Prevent creating duplicate entried for Friendica blocks
authorMint <>
Sun, 12 Mar 2023 19:11:47 +0000 (22:11 +0300)
committerMint <>
Sun, 12 Mar 2023 19:11:47 +0000 (22:11 +0300)
fetch_blocks.py

index 187ac094455167155dd956a873175e69f905a234..8b39eedf348c94079c99636d950db80c8e4df70f 100644 (file)
@@ -418,8 +418,8 @@ for blocker, software in c.fetchall():
 
                     timestamp = int(time())
                     c.execute(
-                        "select * from blocks where blocker = ? and blocked = ? and reason = ?",
-                        (blocker, blocked, reason),
+                        "select * from blocks where blocker = ? and blocked = ?",
+                        (blocker, blocked),
                     )
                     if c.fetchone() == None:
                         c.execute(