aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views/feed.py
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-04-14 08:53:40 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-04-14 08:53:40 +0200
commitb8416422b53a8b99738fef712a1857cdbbf8b887 (patch)
treee5c6bdb02c2ed6d30ec2f0aff17b49390d386614 /pyaggr3g470r/views/feed.py
parentredoing conf gathering and using it in templates (diff)
downloadnewspipe-b8416422b53a8b99738fef712a1857cdbbf8b887.tar.gz
newspipe-b8416422b53a8b99738fef712a1857cdbbf8b887.tar.bz2
newspipe-b8416422b53a8b99738fef712a1857cdbbf8b887.zip
making fetch call dependent to the crawling method option
Diffstat (limited to 'pyaggr3g470r/views/feed.py')
-rw-r--r--pyaggr3g470r/views/feed.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyaggr3g470r/views/feed.py b/pyaggr3g470r/views/feed.py
index 11d14ac2..159dce64 100644
--- a/pyaggr3g470r/views/feed.py
+++ b/pyaggr3g470r/views/feed.py
@@ -163,7 +163,8 @@ def form(feed_id=None):
flash(gettext('Feed %(feed_title)r successfully created.',
feed_title=new_feed.title), 'success')
- utils.fetch(g.user.id, new_feed.id)
+ if conf.CRAWLING_METHOD == "classic":
+ utils.fetch(g.user.id, new_feed.id)
flash(gettext("Downloading articles for the new feed..."), 'info')
return redirect(url_for('feed.form',
bgstack15