diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-28 00:37:35 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-10-28 00:37:35 +0100 |
commit | 84d48f119c200d0040b8756d51413483b103dcd1 (patch) | |
tree | 42a0a0069ccb602a14de3e09d85281bec3284fb2 /pyaggr3g470r/views.py | |
parent | Sorting of articles seems to be working ;-) (diff) | |
download | newspipe-84d48f119c200d0040b8756d51413483b103dcd1.tar.gz newspipe-84d48f119c200d0040b8756d51413483b103dcd1.tar.bz2 newspipe-84d48f119c200d0040b8756d51413483b103dcd1.zip |
first 9 articles
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 81c60e73..cf887823 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -18,7 +18,7 @@ mail = Mail() @app.route('/') def home(): #feeds = models.Feed.objects().order_by('title').fields(slice__articles=[0,9]) - feeds = models.Feed.objects().fields(slice__articles=[0,9]) + feeds = models.Feed.objects().fields(slice__articles=9) return render_template('home.html', feeds=feeds) @app.route('/fetch/', methods=['GET']) @@ -72,6 +72,12 @@ def favorites(): return render_template('favorites.html', favorites=favorites) +@app.route('/unread/', methods=['GET']) +def unread(): + feeds = models.Feed.objects().filter() + + return render_template('unread.html', favorites=favorites) + @app.route('/management/', methods=['GET']) def management(): nb_article = len(models.Article.objects()) |