fix/fix duplicates_counter

This commit is contained in:
SouthFox 2022-11-08 02:39:35 +08:00
parent f164ddaa22
commit 51dcceed35

View file

@ -206,7 +206,7 @@ def toot_process(statuses, my_acct, duplicates_counter=0):
table.favourites_count=favourites_count table.favourites_count=favourites_count
table.language=language 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 duplicates_counter += 1
db.session.merge(table) db.session.merge(table)