aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/favorites.html
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-09-23 06:56:24 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-09-23 06:56:24 +0200
commit0853263f38d6f54b2a6978d31bba643d3f1f156e (patch)
tree2a7e1eab84e6579f65d8d3c944f05e092d2aeed3 /pyaggr3g470r/templates/favorites.html
parentSignificative performance improvement for the /unread view. (diff)
downloadnewspipe-0853263f38d6f54b2a6978d31bba643d3f1f156e.tar.gz
newspipe-0853263f38d6f54b2a6978d31bba643d3f1f156e.tar.bz2
newspipe-0853263f38d6f54b2a6978d31bba643d3f1f156e.zip
Significative performance improvement for the /favorites view.
Diffstat (limited to 'pyaggr3g470r/templates/favorites.html')
-rw-r--r--pyaggr3g470r/templates/favorites.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/templates/favorites.html b/pyaggr3g470r/templates/favorites.html
index 9be16692..210f7343 100644
--- a/pyaggr3g470r/templates/favorites.html
+++ b/pyaggr3g470r/templates/favorites.html
@@ -18,7 +18,7 @@
<a href="/edit_feed/{{ feed.id }}"><i class="glyphicon glyphicon-edit" title="{{ _('Edit this feed') }}"></i></a>
</div>
</div>
- {% for number in range(0, feed.articles.all()|length-(feed.articles.all()|length % 3), 3) %}
+ {% for number in range(0, feed.articles|length-(feed.articles|length % 3), 3) %}
<div class="row">
{% for n in range(number, number+3) %}
<div class="col-xs-6 col-sm-4 col-md-4">
@@ -30,9 +30,9 @@
{% endfor %}
</div>
{% endfor %}
- {% if feed.articles.all()|length % 3 != 0 %}
+ {% if feed.articles|length % 3 != 0 %}
<div class="row">
- {% for n in range(feed.articles.all()|length-(feed.articles.all()|length % 3), feed.articles.all()|length) %}
+ {% for n in range(feed.articles|length-(feed.articles|length % 3), feed.articles|length) %}
<div class="col-xs-6 col-sm-4 col-md-4">
{% if feed.articles[n].readed %}<h3>{% else %}<h1>{% endif %}
<a href="/article/{{ feed.articles[n].id }}">{{ feed.articles[n].title|safe }}</a>
bgstack15