diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-05 19:25:19 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-05 19:25:19 +0100 |
commit | 167e282e0dded657c40c6192395bd0e3203908be (patch) | |
tree | 7327c1f137df7fe426c87c02106bde50639c36b3 /pyaggr3g470r/controllers | |
parent | Provides to the user a way to set the error count of a feed to 0 by enabling ... (diff) | |
download | newspipe-167e282e0dded657c40c6192395bd0e3203908be.tar.gz newspipe-167e282e0dded657c40c6192395bd0e3203908be.tar.bz2 newspipe-167e282e0dded657c40c6192395bd0e3203908be.zip |
Fix the authenticate decorator.
Diffstat (limited to 'pyaggr3g470r/controllers')
-rw-r--r-- | pyaggr3g470r/controllers/feed.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pyaggr3g470r/controllers/feed.py b/pyaggr3g470r/controllers/feed.py index 3d55f255..a3cdcddd 100644 --- a/pyaggr3g470r/controllers/feed.py +++ b/pyaggr3g470r/controllers/feed.py @@ -13,12 +13,11 @@ class FeedController(AbstractController): from pyaggr3g470r.controllers import UserController now = datetime.now() user = UserController(self.user_id).get(id=self.user_id) - max_last = now - timedelta(minutes=user.refresh_rate or 60) + #max_last = now - timedelta(minutes=user.refresh_rate or 60) feeds = [feed for feed in self.read(user_id=self.user_id, - error_count__lt=max_error, enabled=True, - last_retrieved__lt=max_last).limit(limit)] - - if feeds: + error_count__lt=max_error, enabled=True).limit(limit)] + #last_retrieved__lt=max_last).limit(limit)] + """if feeds: self.update({'id__in': [feed.id for feed in feeds]}, - {'last_retrieved': now}) + {'last_retrieved': now})""" return feeds |