diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2014-04-08 09:03:02 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2014-04-08 09:03:02 +0200 |
commit | ad765fdca1663d665dda418a52197d52fd54d26f (patch) | |
tree | caa8dc30a357a8cccc4874f840eea182696f395d /pyaggr3g470r/views.py | |
parent | Fixed /feeds template (2). (diff) | |
download | newspipe-ad765fdca1663d665dda418a52197d52fd54d26f.tar.gz newspipe-ad765fdca1663d665dda418a52197d52fd54d26f.tar.bz2 newspipe-ad765fdca1663d665dda418a52197d52fd54d26f.zip |
Improved articles loading for the home page.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index fb1e6429..c2f6b9bf 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -166,12 +166,7 @@ def home(): The home page lists most recent articles of all feeds. """ user = User.query.filter(User.email == g.user.email).first() - feeds = [] - for feed in user.feeds: - feed.articles = feed.articles[:8] - feeds.append(feed) - return render_template('home.html', user=user, feeds=feeds, \ - head_title="nb unread") + return render_template('home.html', user=user, head_title="nb unread") @app.route('/fetch/', methods=['GET']) @app.route('/fetch/<feed_id>', methods=['GET']) |