summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-02-03 18:21:39 +0300
committerAndrew Dolgov <[email protected]>2009-02-03 18:21:39 +0300
commit95f0c2c5b3c1739faf45e21d19795471d10b67ae (patch)
tree20af97f67afc86533bb81a3baf591cbe8dc0f13d /tt-rss.js
parent1ea930cbea6e66a76a8ef89129a41923102b9292 (diff)
only download articles which are newer than the last stored in local db
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js5
1 files changed, 5 insertions, 0 deletions
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");
}