aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyaggr3g470r/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index c8ed0b79..6f04e1cc 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -227,6 +227,7 @@ def home():
if limit != 'all':
limit = int(limit)
articles = articles.limit(limit)
+ unread = []
unread = db.session.query(Article.feed_id, func.count(Article.id))\
.filter(Article.readed == False)\
.group_by(Article.feed_id).all()
bgstack15