1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 13:51:28 +00:00

only download articles which are newer than the last stored in local db

This commit is contained in:
Andrew Dolgov
2009-02-03 18:21:39 +03:00
parent 1ea930cbea
commit 95f0c2c5b3
2 changed files with 11 additions and 1 deletions

View File

@@ -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");
}