adacam-odc: fix purge table name (landmarks not detections)

This commit is contained in:
kayos 2026-03-24 13:24:00 -07:00
parent 78204aa734
commit 4949d793b5

View file

@ -773,7 +773,7 @@ def purge_forwarded_detections():
conn.row_factory = sqlite3.Row
cur = conn.cursor()
cur.execute(
"DELETE FROM detections WHERE id <= ? AND ts < ?",
"DELETE FROM landmarks WHERE id <= ? AND ts < ?",
(cursor_id, cutoff_ms)
)
deleted = cur.rowcount