diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-09-20 18:05:33 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-09-20 18:05:33 +0200 |
commit | 0b82405c091aad39ade4a57978e7997b7f9d5dd3 (patch) | |
tree | c34920bd6eab63e0779777d7e4e54223dff5cf46 /src/web/controllers | |
parent | simple test of a 'popular' page. (diff) | |
download | newspipe-0b82405c091aad39ade4a57978e7997b7f9d5dd3.tar.gz newspipe-0b82405c091aad39ade4a57978e7997b7f9d5dd3.tar.bz2 newspipe-0b82405c091aad39ade4a57978e7997b7f9d5dd3.zip |
Improved the way we count feeds by link.
Diffstat (limited to 'src/web/controllers')
-rw-r--r-- | src/web/controllers/feed.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/web/controllers/feed.py b/src/web/controllers/feed.py index a3f5cae7..c67c6bea 100644 --- a/src/web/controllers/feed.py +++ b/src/web/controllers/feed.py @@ -70,6 +70,9 @@ class FeedController(AbstractController): def count_by_category(self, **filters): return self._count_by(Feed.category_id, filters) + def count_by_link(self, **filters): + return self._count_by(Feed.link, filters) + def _ensure_icon(self, attrs): if not attrs.get('icon_url'): return |