From e9aa8a3a06a98649dd48dacb45aef6dbf84b1e0e Mon Sep 17 00:00:00 2001 From: mdivecky Date: Thu, 17 Aug 2023 12:25:01 +0200 Subject: [PATCH 1/2] Use WAL in sqlite3 to avoid database locks that prevent reads --- processor/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/processor/app.py b/processor/app.py index bb06ba7..5aab918 100644 --- a/processor/app.py +++ b/processor/app.py @@ -33,6 +33,8 @@ db_con = sqlite3.connect("../data/diffs.db") db = db_con.cursor() db.executescript(""" +PRAGMA journal_mode=WAL; + CREATE TABLE IF NOT EXISTS diffs ( diff_id INTEGER PRIMARY KEY, article_id TEXT, From 141f422c73a57d3098f85409f26d45c5612d2142 Mon Sep 17 00:00:00 2001 From: mdivecky Date: Thu, 17 Aug 2023 12:25:10 +0200 Subject: [PATCH 2/2] Add media outputs in About page --- view/templates/about.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/templates/about.html b/view/templates/about.html index 641e292..eae7b89 100644 --- a/view/templates/about.html +++ b/view/templates/about.html @@ -14,7 +14,7 @@

Headliner is monitoring rss feeds of czech news websites for changes in - article headlines. Just because it might be interesting. + article headlines. Just because it might be interesting. You can read more about it on zive.cz or a2larm.cz.

Check out the source code,