aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-10-28 00:37:35 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-10-28 00:37:35 +0100
commit84d48f119c200d0040b8756d51413483b103dcd1 (patch)
tree42a0a0069ccb602a14de3e09d85281bec3284fb2
parentSorting of articles seems to be working ;-) (diff)
downloadnewspipe-84d48f119c200d0040b8756d51413483b103dcd1.tar.gz
newspipe-84d48f119c200d0040b8756d51413483b103dcd1.tar.bz2
newspipe-84d48f119c200d0040b8756d51413483b103dcd1.zip
first 9 articles
-rw-r--r--pyaggr3g470r/views.py8
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())
bgstack15