remove check for dupes

This commit is contained in:
Antonio J. Delgado 2025-02-17 09:56:21 +02:00
parent 642b57c5b5
commit c4e7e0e90c

View file

@ -110,11 +110,8 @@ class MastodonEmailBridge:
res = cur.execute("SELECT id FROM sent_items") res = cur.execute("SELECT id FROM sent_items")
rows = res.fetchall() rows = res.fetchall()
for row in rows: for row in rows:
self._log.debug( # if row[0] in self.sent_items:
row[1] # self._log.warning("Duplicate id in database '%s'", row[0])
)
if row[0] in self.sent_items:
self._log.warning("Duplicate id in database '%s'", row[0])
# else: # else:
# self._log.debug("Found sent item with id '%s' (%s)", row[0], type(row[0])) # self._log.debug("Found sent item with id '%s' (%s)", row[0], type(row[0]))
self.sent_items.append(row[0]) self.sent_items.append(row[0])