aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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