diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-20 12:31:12 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-01-20 12:31:12 +0100 |
commit | b6445a31fee14f6935ddc2cde7ec3ff2e31ea161 (patch) | |
tree | 934fdeb61f193193130c95169d35b433c7f4c06d /source/pyAggr3g470r.py | |
parent | Minor bugfix in index.html template: feed['mail'] == True if mail notificatio... (diff) | |
download | newspipe-b6445a31fee14f6935ddc2cde7ec3ff2e31ea161.tar.gz newspipe-b6445a31fee14f6935ddc2cde7ec3ff2e31ea161.tar.bz2 newspipe-b6445a31fee14f6935ddc2cde7ec3ff2e31ea161.zip |
You can now fetch only one feed.
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-x | source/pyAggr3g470r.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index d99ab122..2120a171 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -172,12 +172,16 @@ class pyAggr3g470r(object): search.exposed = True @auth.require() - def fetch(self): + def fetch(self, param=None): """ Fetch all feeds. """ + feed_link = None + if None != param: + # Fetch only the feed specified in parameter + feed_link = self.mongo.get_feed(param)["feed_link"] feed_getter = feedgetter.FeedGetter() - feed_getter.retrieve_feed() + feed_getter.retrieve_feed(feed_url=feed_link) return self.index() fetch.exposed = True |