aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/controllers/feed.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-15 17:20:38 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-15 17:20:38 +0100
commit9a1a50f7cb2f63071fe127a29fece79585ea4037 (patch)
tree61fce1c10fbda22fbd31feab3bd91ec7a9257cb7 /pyaggr3g470r/controllers/feed.py
parentMinor changes to the documentation. (diff)
downloadnewspipe-9a1a50f7cb2f63071fe127a29fece79585ea4037.tar.gz
newspipe-9a1a50f7cb2f63071fe127a29fece79585ea4037.tar.bz2
newspipe-9a1a50f7cb2f63071fe127a29fece79585ea4037.zip
pylint check
Diffstat (limited to 'pyaggr3g470r/controllers/feed.py')
-rw-r--r--pyaggr3g470r/controllers/feed.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/controllers/feed.py b/pyaggr3g470r/controllers/feed.py
index a3cdcddd..342ab88e 100644
--- a/pyaggr3g470r/controllers/feed.py
+++ b/pyaggr3g470r/controllers/feed.py
@@ -1,4 +1,4 @@
-from datetime import datetime, timedelta
+from datetime import datetime
from .abstract import AbstractController
from pyaggr3g470r.models import Feed
@@ -17,7 +17,7 @@ class FeedController(AbstractController):
feeds = [feed for feed in self.read(user_id=self.user_id,
error_count__lt=max_error, enabled=True).limit(limit)]
#last_retrieved__lt=max_last).limit(limit)]
- """if feeds:
+ if feeds:
self.update({'id__in': [feed.id for feed in feeds]},
- {'last_retrieved': now})"""
+ {'last_retrieved': now})
return feeds
bgstack15