aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates/home.html
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-10-13 13:17:17 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-10-13 13:17:17 +0200
commit56c1638ac1f14f2a1731ab5ce9638d785c12e9c5 (patch)
tree794bb38c3788c5399275dba34634a3e36cc68ed4 /pyaggr3g470r/templates/home.html
parentMark an article as read. (diff)
downloadnewspipe-56c1638ac1f14f2a1731ab5ce9638d785c12e9c5.tar.gz
newspipe-56c1638ac1f14f2a1731ab5ce9638d785c12e9c5.tar.bz2
newspipe-56c1638ac1f14f2a1731ab5ce9638d785c12e9c5.zip
MongoEngine list slicing.
Diffstat (limited to 'pyaggr3g470r/templates/home.html')
-rw-r--r--pyaggr3g470r/templates/home.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/templates/home.html b/pyaggr3g470r/templates/home.html
index 614ad269..7aede342 100644
--- a/pyaggr3g470r/templates/home.html
+++ b/pyaggr3g470r/templates/home.html
@@ -8,7 +8,7 @@
<a href="/articles/{{ feed.id }}"><i class="glyphicon glyphicon-th-list"></i></a>
</div>
</div>
- {% for number in range(0, feed.articles[:10]|sort(attribute='date')|length-2, 3) %}
+ {% for number in range(0, feed.articles|sort(attribute='date')|length-2, 3) %}
<div class="row">
<div class="col-xs-6 col-sm-4 col-md-4">
{% if feed.articles[number].readed %}<h3>{% else %}<h1>{% endif %}
bgstack15