mirror of
https://git.nolog.cz/NoLog.cz/headline.git
synced 2025-01-31 11:53:35 +01:00
Fix missing field in database insert, causing writes to fail
This commit is contained in:
parent
bcc0f1696e
commit
24f776a4b3
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ def process_diff(old, new, rss_id):
|
||||||
# print(old['link'])
|
# print(old['link'])
|
||||||
# print(diff)
|
# 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)
|
sql_data = (new['article_id'], old['medium'], old['link'], old['title'], new['title'], html_diff)
|
||||||
db.execute(sql, sql_data)
|
db.execute(sql, sql_data)
|
||||||
db_con.commit()
|
db_con.commit()
|
||||||
|
|
Loading…
Reference in a new issue