aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-10-28 10:25:28 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-10-28 10:25:28 +0100
commit37298690251faed707496f2db7fa7edb00ebedce (patch)
treee90230c35bd9c9f5a71931ce06c16bed1eadb72c /src/web/views
parentspecify npm version (diff)
downloadnewspipe-37298690251faed707496f2db7fa7edb00ebedce.tar.gz
newspipe-37298690251faed707496f2db7fa7edb00ebedce.tar.bz2
newspipe-37298690251faed707496f2db7fa7edb00ebedce.zip
Improved view for the list of public feeds.
Diffstat (limited to 'src/web/views')
-rw-r--r--src/web/views/feed.py2
-rw-r--r--src/web/views/user.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/web/views/feed.py b/src/web/views/feed.py
index 9fa4b089..297b5521 100644
--- a/src/web/views/feed.py
+++ b/src/web/views/feed.py
@@ -26,7 +26,7 @@ feed_bp = Blueprint('feed', __name__, url_prefix='/feed')
@login_required
@etag_match
def feeds():
- "Lists the subscribed feeds in a table."
+ "Lists the subscribed feeds in a table."
art_contr = ArticleController(current_user.id)
return render_template('feeds.html',
feeds=FeedController(current_user.id).read().order_by('title'),
diff --git a/src/web/views/user.py b/src/web/views/user.py
index c9c23ca7..534e1ded 100644
--- a/src/web/views/user.py
+++ b/src/web/views/user.py
@@ -37,7 +37,7 @@ def profile_public(nickname=None):
filters['private'] = False
if category_id:
filters['category_id'] = category_id
- feeds = FeedController(user.id).read(**filters).all()
+ feeds = FeedController(user.id).read(**filters).order_by('title')
"""word_size = 6
filters = {}
bgstack15