diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-13 13:17:17 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-13 13:17:17 +0200 |
commit | 56c1638ac1f14f2a1731ab5ce9638d785c12e9c5 (patch) | |
tree | 794bb38c3788c5399275dba34634a3e36cc68ed4 /pyaggr3g470r/views.py | |
parent | Mark an article as read. (diff) | |
download | newspipe-56c1638ac1f14f2a1731ab5ce9638d785c12e9c5.tar.gz newspipe-56c1638ac1f14f2a1731ab5ce9638d785c12e9c5.tar.bz2 newspipe-56c1638ac1f14f2a1731ab5ce9638d785c12e9c5.zip |
MongoEngine list slicing.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 78e89633..27b1ab59 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -15,7 +15,7 @@ mail = Mail() @app.route('/') def home(): - feeds = models.Feed.objects().order_by('title') + feeds = models.Feed.objects().order_by('title').fields(slice__articles=[0,9]) return render_template('home.html', feeds=feeds) @app.route('/fetch/', methods=['GET']) |