aboutsummaryrefslogtreecommitdiff
path: root/pyAggr3g470r.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2011-04-20 21:57:30 +0200
committercedricbonhomme <devnull@localhost>2011-04-20 21:57:30 +0200
commit6bc8d3a75f39ede9c23b570c940988ccf7ac0e38 (patch)
tree9a3ebb8bab671e0e31558b5e67abb1a93416e420 /pyAggr3g470r.py
parentIt is now possible to set the maximum number of articles per feed in the conf... (diff)
downloadnewspipe-6bc8d3a75f39ede9c23b570c940988ccf7ac0e38.tar.gz
newspipe-6bc8d3a75f39ede9c23b570c940988ccf7ac0e38.tar.bz2
newspipe-6bc8d3a75f39ede9c23b570c940988ccf7ac0e38.zip
Added a link in the management to load all the articles from the data base.
Diffstat (limited to 'pyAggr3g470r.py')
-rwxr-xr-xpyAggr3g470r.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index 798c294e..6abc01c8 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -22,7 +22,7 @@
__author__ = "Cedric Bonhomme"
__version__ = "$Revision: 2.7 $"
__date__ = "$Date: 2011/03/21 $"
-__revision__ = "$Date: 2011/04/15 $"
+__revision__ = "$Date: 2011/04/20 $"
__copyright__ = "Copyright (c) Cedric Bonhomme"
__license__ = "GPLv3"
@@ -282,15 +282,16 @@ class Root:
html += """<form method=get action="/drop_base">\n<input type="submit" value="Delete all articles"></form>\n"""
- html += '<form method=get action="/set_max_articles/">'
+ html += '<form method=get action="/set_max_articles/">\n'
html += "For each feed only load the "
html += """<input type="number" name="max_nb_articles" value="%s" min="5" max="5000" step="1" size="2">\n""" % (max_nb_articles)
html += " last articles."
if utils.MAX_NB_ARTICLES == -1:
- html += "<br />All articles are currently loaded."
+ html += "<br />All articles are currently loaded.\n"
else:
- html += "<br />For each feed only " + str(utils.MAX_NB_ARTICLES) + " articles are currently loaded."
- html += "</form>"
+ html += "<br />For each feed only " + str(utils.MAX_NB_ARTICLES) + " articles are currently loaded. "
+ html += '<a href="/set_max_articles/-1">Load all feeds.</a><br />\n'
+ html += "</form>\n"
# Export functions
html += "<h1>Export articles</h1>\n\n"
bgstack15