aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-01-12 10:59:35 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-01-12 10:59:35 +0100
commit6058ac1fc751fcdacd87096d2e491f5437b3265c (patch)
tree4840a5a738bcc2c7a7099be1713edf84545db02a /pyaggr3g470r/views.py
parentKeep the MongoDB database and Whoosh index synchronized. (diff)
downloadnewspipe-6058ac1fc751fcdacd87096d2e491f5437b3265c.tar.gz
newspipe-6058ac1fc751fcdacd87096d2e491f5437b3265c.tar.bz2
newspipe-6058ac1fc751fcdacd87096d2e491f5437b3265c.zip
It is now possible to feth only one feed.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index b0977c65..e44da631 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -104,13 +104,14 @@ def home():
return render_template('home.html', user=user, feeds=feeds)
@app.route('/fetch/', methods=['GET'])
+@app.route('/fetch/<feed_id>', methods=['GET'])
@login_required
-def fetch():
+def fetch(feed_id=None):
"""
Triggers the download of news.
"""
feed_getter = feedgetter.FeedGetter(g.user.email)
- feed_getter.retrieve_feed()
+ feed_getter.retrieve_feed(feed_id)
flash("New articles retrieved.", 'success')
return redirect(url_for('home'))
bgstack15