aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/web/templates/feed_list_per_categories.html2
-rw-r--r--src/web/views/feed.py2
-rw-r--r--src/web/views/user.py2
3 files changed, 2 insertions, 4 deletions
diff --git a/src/web/templates/feed_list_per_categories.html b/src/web/templates/feed_list_per_categories.html
index 4b0e517e..396139a4 100644
--- a/src/web/templates/feed_list_per_categories.html
+++ b/src/web/templates/feed_list_per_categories.html
@@ -17,7 +17,6 @@
<br />
-{% if feeds | length != 0 %}
<div class="table-responsive">
<table id="table-feeds" class="table table-striped">
<thead>
@@ -51,4 +50,3 @@ $(document).ready(function() {
});
});
</script>
-{% endif %}
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