diff options
-rw-r--r-- | setup.sql | 4 | ||||
-rw-r--r-- | static/scripts/auto_refresh.js | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -10,7 +10,7 @@ CREATE TABLE IF NOT EXISTS tagrss_info(info_key TEXT PRIMARY KEY, value TEXT) ST INSERT OR REPLACE INTO tagrss_info(info_key, value) VALUES - ("version", "0.10.0"); + ("version", "0.11.0"); CREATE TABLE IF NOT EXISTS feed_count( id INTEGER PRIMARY KEY CHECK (id = 0), @@ -23,7 +23,7 @@ VALUES (0, 0); CREATE TABLE IF NOT EXISTS feeds( - id INTEGER PRIMARY KEY, + id INTEGER PRIMARY KEY AUTOINCREMENT, source TEXT UNIQUE, title TEXT ) STRICT; diff --git a/static/scripts/auto_refresh.js b/static/scripts/auto_refresh.js index 48af816..5e7223e 100644 --- a/static/scripts/auto_refresh.js +++ b/static/scripts/auto_refresh.js @@ -1,7 +1,7 @@ (() => { const onFrontPage = () => { const searchParams = new URLSearchParams(window.location.search); - let pageNum = searchParams.get("page_num"); + const pageNum = searchParams.get("page_num"); return (pageNum === "1") || (pageNum === null); }; |