fix binding
This commit is contained in:
parent
771967c905
commit
afbed1f86b
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ class MastodonEmailBridge:
|
||||||
conn.quit()
|
conn.quit()
|
||||||
self._log.debug("Adding entry to database...")
|
self._log.debug("Adding entry to database...")
|
||||||
cur = self.sqlite.cursor()
|
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()
|
rows = res.fetchall()
|
||||||
if len(rows) == 0:
|
if len(rows) == 0:
|
||||||
cur.execute(f"INSERT INTO sent_items (id, date) VALUES ({data['id']}, {time.time()})")
|
cur.execute(f"INSERT INTO sent_items (id, date) VALUES ({data['id']}, {time.time()})")
|
||||||
|
|
Loading…
Reference in a new issue