From 95f0c2c5b3c1739faf45e21d19795471d10b67ae Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 3 Feb 2009 18:21:39 +0300 Subject: only download articles which are newer than the last stored in local db --- tt-rss.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tt-rss.js') diff --git a/tt-rss.js b/tt-rss.js index 15227c325..666476778 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -1600,6 +1600,11 @@ function initiate_offline_download(stage) { var query = "backend.php?op=rpc&subop=download&stage=" + stage; + var rs = db.execute("SELECT MAX(id) FROM articles"); + if (rs.isValidRow()) { + query = query + "&cid=" + rs.field(0); + } + if (document.getElementById("download_ops_form")) { query = query + "&" + Form.serialize("download_ops_form"); } -- cgit v1.2.3