diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-09 09:45:56 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-09 09:45:56 +0200 |
commit | 9080734227040dff353c0f78cdcaafd95a115b76 (patch) | |
tree | 1c0433654a6b002e3aaea4acea877adb69bd7375 /src/web | |
parent | Better like that. (diff) | |
download | newspipe-9080734227040dff353c0f78cdcaafd95a115b76.tar.gz newspipe-9080734227040dff353c0f78cdcaafd95a115b76.tar.bz2 newspipe-9080734227040dff353c0f78cdcaafd95a115b76.zip |
Bug fix: unorderable types when listing the categories.
Diffstat (limited to 'src/web')
-rw-r--r-- | src/web/templates/categories.html | 2 | ||||
-rw-r--r-- | src/web/views/category.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/web/templates/categories.html b/src/web/templates/categories.html index a61cc4b2..4985e0ca 100644 --- a/src/web/templates/categories.html +++ b/src/web/templates/categories.html @@ -17,7 +17,7 @@ </tr> </thead> <tbody> - {% for category in categories|sort(attribute="name") %} + {% for category in categories %} <tr> <td>{{ loop.index }}</td> <td>{{ category.name }}</td> diff --git a/src/web/views/category.py b/src/web/views/category.py index a7447775..c54ebe9b 100644 --- a/src/web/views/category.py +++ b/src/web/views/category.py @@ -19,7 +19,7 @@ def list_(): "Lists the subscribed feeds in a table." art_contr = ArticleController(current_user.id) return render_template('categories.html', - categories=list(CategoryController(current_user.id).read()), + categories=list(CategoryController(current_user.id).read().order_by('name')), feeds_count=FeedController(current_user.id).count_by_category(), unread_article_count=art_contr.count_by_category(readed=False), article_count=art_contr.count_by_category()) |