From 441d050305dc9f0de821628e5a3e053c574a002b Mon Sep 17 00:00:00 2001 From: Mint <> Date: Sun, 12 Mar 2023 22:11:47 +0300 Subject: [PATCH] Prevent creating duplicate entried for Friendica blocks --- fetch_blocks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetch_blocks.py b/fetch_blocks.py index 187ac09..8b39eed 100644 --- a/fetch_blocks.py +++ b/fetch_blocks.py @@ -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( -- 2.39.5