From 51dcceed359c43a9c4f4e94271500c2e828a9de6 Mon Sep 17 00:00:00 2001 From: SouthFox Date: Tue, 8 Nov 2022 02:39:35 +0800 Subject: [PATCH] fix/fix duplicates_counter --- BDSM/toot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BDSM/toot.py b/BDSM/toot.py index ee9a7e2..ed24dd5 100644 --- a/BDSM/toot.py +++ b/BDSM/toot.py @@ -206,7 +206,7 @@ def toot_process(statuses, my_acct, duplicates_counter=0): table.favourites_count=favourites_count table.language=language - if Toot.query.get(id) == None or Other.query.get(id) == None: + if Toot.query.get(id) != None or Other.query.get(id) != None: duplicates_counter += 1 db.session.merge(table)