diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-05 08:55:47 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-10-05 08:55:47 +0200 |
commit | 079cf9e25e6f6ee2ab4ad6a76e972c6b8da4982b (patch) | |
tree | 48f447e12df8827608c88637f9e53729112e90e2 /src/web/controllers | |
parent | Bugfix: 'feeds' is now a list. (diff) | |
download | newspipe-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.py | 6 |
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]}, |