aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-08-10 00:55:29 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-08-10 00:55:29 +0200
commit424237f0d93b80c81509752d8ac406408189ca32 (patch)
tree25155da96c6f6dcaf61595f637a3aa6969ec016e /pyaggr3g470r
parentRemoved anchor. (diff)
downloadnewspipe-424237f0d93b80c81509752d8ac406408189ca32.tar.gz
newspipe-424237f0d93b80c81509752d8ac406408189ca32.tar.bz2
newspipe-424237f0d93b80c81509752d8ac406408189ca32.zip
Articles are automatically retrieved after the import of an OPML file.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index ed1ef634..0bf26227 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -265,7 +265,7 @@ def fetch(feed_id=None):
News are downloaded in a separated process, mandatory for Heroku.
"""
utils.fetch(g.user.email, None)
- flash(gettext("Downloading articles..."), 'success')
+ flash(gettext("Downloading articles..."), 'info')
return redirect(redirect_url())
@app.route('/about', methods=['GET'])
@@ -596,7 +596,9 @@ def management():
else:
try:
nb = utils.import_opml(g.user.email, data.read())
+ utils.fetch(g.user.email, None)
flash(str(nb) + ' ' + gettext('feeds imported.'), "success")
+ flash(gettext("Downloading articles..."), 'info')
except:
flash(gettext("Impossible to import the new feeds."), "danger")
elif None != request.files.get('jsonfile', None):
@@ -662,7 +664,7 @@ def edit_feed(feed_id=None):
flash(gettext('Feed successfully created.'), 'success')
utils.fetch(g.user.email, Feed.query.filter(Feed.link == form.link.data).first().id)
- flash(gettext("Downloading articles for the new feed..."), 'success')
+ flash(gettext("Downloading articles for the new feed..."), 'info')
return redirect('/edit_feed/' + str(new_feed.id))
else:
bgstack15