aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-22 17:38:42 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-06-22 17:38:42 +0200
commitef13aa35f28346901013697989be7f72c7094d65 (patch)
tree7dd24583a34568a5667957b12daee15535e15f6e
parentif the crawler is not able to get the link of the article, continue. (diff)
downloadnewspipe-ef13aa35f28346901013697989be7f72c7094d65.tar.gz
newspipe-ef13aa35f28346901013697989be7f72c7094d65.tar.bz2
newspipe-ef13aa35f28346901013697989be7f72c7094d65.zip
Added a comment for the home() view.
-rw-r--r--pyaggr3g470r/views.py3
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)
bgstack15