diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-13 07:53:53 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-13 07:53:53 +0200 |
commit | 217d88913e77187c48e2e87abf7dcec45fd09f31 (patch) | |
tree | db910036703467e2799aa632d365f7a91b1f6ea1 /pyaggr3g470r | |
parent | Sort the list of feeds by number of unread artiles and alphabetically. (diff) | |
download | newspipe-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')
-rw-r--r-- | pyaggr3g470r/views.py | 1 |
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() |