From: Mint <> Date: Sun, 12 Mar 2023 19:11:47 +0000 (+0300) Subject: Prevent creating duplicate entried for Friendica blocks X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=441d050305dc9f0de821628e5a3e053c574a002b;p=fba.git Prevent creating duplicate entried for Friendica blocks --- 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(