diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-22 17:38:42 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-06-22 17:38:42 +0200 |
commit | ef13aa35f28346901013697989be7f72c7094d65 (patch) | |
tree | 7dd24583a34568a5667957b12daee15535e15f6e /pyaggr3g470r/views.py | |
parent | if the crawler is not able to get the link of the article, continue. (diff) | |
download | newspipe-ef13aa35f28346901013697989be7f72c7094d65.tar.gz newspipe-ef13aa35f28346901013697989be7f72c7094d65.tar.bz2 newspipe-ef13aa35f28346901013697989be7f72c7094d65.zip |
Added a comment for the home() view.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 25717dce..1ff8952a 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -216,6 +216,9 @@ def signup(): @app.route('/') @login_required def home(): + """ + Home page for connected users. Displays by default unread articles. + """ feeds = {feed.id: feed.title for feed in g.user.feeds if feed.enabled} articles = Article.query.filter(Article.feed_id.in_(feeds.keys()), Article.user_id == g.user.id) |