From 24f776a4b31ed07e8a28833e3d21778b6f6f8eae Mon Sep 17 00:00:00 2001 From: mdivecky Date: Thu, 17 Aug 2023 14:18:08 +0200 Subject: [PATCH] Fix missing field in database insert, causing writes to fail --- processor/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/app.py b/processor/app.py index 5aab918..c553bb6 100644 --- a/processor/app.py +++ b/processor/app.py @@ -88,7 +88,7 @@ def process_diff(old, new, rss_id): # print(old['link']) # print(diff) - sql = "INSERT INTO diffs(article_id, feed_name, article_url, title_orig, title_new, diff_html, diff_time) VALUES (?,?,?,?,?,datetime('now', 'localtime'))" + sql = "INSERT INTO diffs(article_id, feed_name, article_url, title_orig, title_new, diff_html, diff_time) VALUES (?,?,?,?,?,?,datetime('now', 'localtime'))" sql_data = (new['article_id'], old['medium'], old['link'], old['title'], new['title'], html_diff) db.execute(sql, sql_data) db_con.commit()