db: gtit rid of sqllite
Local Docker Build (Dev) / build-dev (push) Successful in 4s

This commit is contained in:
sbcrumb committed 2025-10-19 09:54:57 -04:00
1 parent 783f02f7d7
commit 7089c883a9
3 files changed
+19 -13

No files matched your search

+3 -2
View File
@@ -434,9 +434,10 @@ class NFOGuardDatabase:
"""Add processing history entry"""
with self.get_connection() as conn:
cursor = conn.cursor()
cursor.execute("""
placeholder = self._get_placeholder()
cursor.execute(f"""
INSERT INTO processing_history (imdb_id, media_type, event_type, processed_at, details)
VALUES (?, ?, ?, ?, ?)
VALUES ({placeholder}, {placeholder}, {placeholder}, {placeholder}, {placeholder})
""", (imdb_id, media_type, event_type, datetime.utcnow().isoformat(),
json.dumps(details) if details else None))