diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-07 12:05:00 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-04-07 12:05:00 +0200 |
commit | 5b860175b5ac8071855bb0dae63eb2f9c97c5331 (patch) | |
tree | c3115441273c8e2f117895e20867aaae8a719acf /src/web | |
parent | Removed the endponint to see stats about a user. (diff) | |
download | newspipe-5b860175b5ac8071855bb0dae63eb2f9c97c5331.tar.gz newspipe-5b860175b5ac8071855bb0dae63eb2f9c97c5331.tar.bz2 newspipe-5b860175b5ac8071855bb0dae63eb2f9c97c5331.zip |
Feeds are ordered by tittle in the feeds page.
Diffstat (limited to 'src/web')
-rw-r--r-- | src/web/templates/feed_list.html | 2 | ||||
-rw-r--r-- | src/web/views/feed.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/web/templates/feed_list.html b/src/web/templates/feed_list.html index 2e7e8e71..093ed631 100644 --- a/src/web/templates/feed_list.html +++ b/src/web/templates/feed_list.html @@ -12,7 +12,7 @@ </tr> </thead> <tbody> - {% for feed in feeds|sort(attribute="title") %} + {% for feed in feeds %} <tr {% if not feed.enabled %}class="warning"{% endif %}> <td>{{ loop.index }}</td> <td> diff --git a/src/web/views/feed.py b/src/web/views/feed.py index 69e093b2..b6e0974a 100644 --- a/src/web/views/feed.py +++ b/src/web/views/feed.py @@ -29,7 +29,7 @@ def feeds(): "Lists the subscribed feeds in a table." art_contr = ArticleController(current_user.id) return render_template('feeds.html', - feeds=FeedController(current_user.id).read(), + feeds=FeedController(current_user.id).read().order_by('title'), unread_article_count=art_contr.count_by_feed(readed=False), article_count=art_contr.count_by_feed()) |