aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-13 07:53:53 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-13 07:53:53 +0200
commit217d88913e77187c48e2e87abf7dcec45fd09f31 (patch)
treedb910036703467e2799aa632d365f7a91b1f6ea1 /pyaggr3g470r/views.py
parentSort the list of feeds by number of unread artiles and alphabetically. (diff)
downloadnewspipe-217d88913e77187c48e2e87abf7dcec45fd09f31.tar.gz
newspipe-217d88913e77187c48e2e87abf7dcec45fd09f31.tar.bz2
newspipe-217d88913e77187c48e2e87abf7dcec45fd09f31.zip
Try to fix a problem on Heroku with the list of feeds (1).
Diffstat (limited to 'pyaggr3g470r/views.py')
-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