From 5b860175b5ac8071855bb0dae63eb2f9c97c5331 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 7 Apr 2016 12:05:00 +0200 Subject: Feeds are ordered by tittle in the feeds page. --- src/web/templates/feed_list.html | 2 +- src/web/views/feed.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/web') 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 @@ - {% for feed in feeds|sort(attribute="title") %} + {% for feed in feeds %} {{ loop.index }} 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()) -- cgit