aboutsummaryrefslogtreecommitdiff
path: root/src/web/controllers
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-05 08:55:47 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-05 08:55:47 +0200
commit079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b (patch)
tree48f447e12df8827608c88637f9e53729112e90e2 /src/web/controllers
parentBugfix: 'feeds' is now a list. (diff)
downloadnewspipe-079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b.tar.gz
newspipe-079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b.tar.bz2
newspipe-079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b.zip
Removed refresh_rate column for the user table.
Diffstat (limited to 'src/web/controllers')
-rw-r--r--src/web/controllers/feed.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/web/controllers/feed.py b/src/web/controllers/feed.py
index c67c6bea..6c41cce0 100644
--- a/src/web/controllers/feed.py
+++ b/src/web/controllers/feed.py
@@ -10,7 +10,6 @@ from web.lib.utils import clear_string
logger = logging.getLogger(__name__)
DEFAULT_LIMIT = 5
-DEFAULT_REFRESH_RATE = 60
DEFAULT_MAX_ERROR = conf.DEFAULT_MAX_ERROR
@@ -26,10 +25,9 @@ class FeedController(AbstractController):
.order_by('last_retrieved')
.limit(limit)]
- def list_fetchable(self, max_error=DEFAULT_MAX_ERROR,
- limit=DEFAULT_LIMIT, refresh_rate=DEFAULT_REFRESH_RATE):
+ def list_fetchable(self, max_error=DEFAULT_MAX_ERROR, limit=DEFAULT_LIMIT):
now = datetime.now()
- max_last = now - timedelta(minutes=refresh_rate)
+ max_last = now - timedelta(minutes=60)
feeds = self.list_late(max_last, max_error, limit)
if feeds:
self.update({'id__in': [feed.id for feed in feeds]},
bgstack15