fix binding

This commit is contained in:
Antonio J. Delgado 2025-02-17 15:22:54 +02:00
parent afbed1f86b
commit c75297324e

View file

@ -236,7 +236,7 @@ class MastodonEmailBridge:
conn.quit()
self._log.debug("Adding entry to database...")
cur = self.sqlite.cursor()
res = cur.execute("SELECT id FROM sent_items WHERE id = ?", (data['id']))
res = cur.execute("SELECT id FROM sent_items WHERE id = ?", [(data['id'])])
rows = res.fetchall()
if len(rows) == 0:
cur.execute(f"INSERT INTO sent_items (id, date) VALUES ({data['id']}, {time.time()})")