diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-01-12 10:59:35 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-01-12 10:59:35 +0100 |
commit | 6058ac1fc751fcdacd87096d2e491f5437b3265c (patch) | |
tree | 4840a5a738bcc2c7a7099be1713edf84545db02a /pyaggr3g470r/views.py | |
parent | Keep the MongoDB database and Whoosh index synchronized. (diff) | |
download | newspipe-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.py | 5 |
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')) |