aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views/feed.py
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-05-24 19:09:35 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-07-02 15:34:16 +0200
commit4f03d7b324360f718780fcbdfc359f60896fead4 (patch)
tree772ead2931ebd12dfff3eb2199d13463ae3e1fc3 /pyaggr3g470r/views/feed.py
parentadding comments and tests (diff)
downloadnewspipe-4f03d7b324360f718780fcbdfc359f60896fead4.tar.gz
newspipe-4f03d7b324360f718780fcbdfc359f60896fead4.tar.bz2
newspipe-4f03d7b324360f718780fcbdfc359f60896fead4.zip
accelerating the feeds page
Diffstat (limited to 'pyaggr3g470r/views/feed.py')
-rw-r--r--pyaggr3g470r/views/feed.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyaggr3g470r/views/feed.py b/pyaggr3g470r/views/feed.py
index 51832ea5..f940e22d 100644
--- a/pyaggr3g470r/views/feed.py
+++ b/pyaggr3g470r/views/feed.py
@@ -24,7 +24,8 @@ feed_bp = Blueprint('feed', __name__, url_prefix='/feed')
def feeds():
"Lists the subscribed feeds in a table."
return render_template('feeds.html',
- feeds=FeedController(g.user.id).read())
+ feeds=FeedController(g.user.id).read(),
+ article_count=ArticleController(g.user.id).count_by_feed())
@feed_bp.route('/<int:feed_id>', methods=['GET'])
bgstack15