From 8ab04e490faa543ead1b6ae3001c42d540d0d6fb Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sun, 13 Jul 2014 16:15:01 +0200 Subject: It is useless to retrieve all articles in order to count the number of articles. --- pyaggr3g470r/templates/feeds.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyaggr3g470r/templates/feeds.html b/pyaggr3g470r/templates/feeds.html index 4ccc3529..b511b357 100644 --- a/pyaggr3g470r/templates/feeds.html +++ b/pyaggr3g470r/templates/feeds.html @@ -1,7 +1,7 @@ {% extends "layout.html" %} {% block content %}
-

{{ _('You are subscribed to') }} {{ feeds.all()|count }} {{ _('feeds') }} · {{ _('Add a') }} {{ _('feed') }}

+

{{ _('You are subscribed to') }} {{ feeds.count() }} {{ _('feeds') }} · {{ _('Add a') }} {{ _('feed') }}

@@ -27,7 +27,7 @@ - +
{{ feed.title }} {{ feed.site_link }}{{ feed.articles.all()|count }}{{ feed.articles.count() }} -- cgit