fix binding

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

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()})")