From 0b82405c091aad39ade4a57978e7997b7f9d5dd3 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 20 Sep 2016 18:05:33 +0200 Subject: Improved the way we count feeds by link. --- src/web/controllers/feed.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/web/controllers') 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 -- cgit