aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index cf887823..4a8551ab 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -74,9 +74,9 @@ def favorites():
@app.route('/unread/', methods=['GET'])
def unread():
- feeds = models.Feed.objects().filter()
-
- return render_template('unread.html', favorites=favorites)
+ feeds = models.Feed.objects().filter(articles__readed=False)
+ print len(feeds)
+ return render_template('unread.html', feeds=feeds)
@app.route('/management/', methods=['GET'])
def management():
bgstack15