diff options
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index fa406fe9..ae10a5a9 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -151,5 +151,7 @@ def unread(): @app.route('/management/', methods=['GET']) @login_required def management(): - nb_article = models.Article.objects().count() - return render_template('management.html', nb_article=nb_article)
\ No newline at end of file + nb_feeds = models.Feed.objects().count() + nb_articles = models.Article.objects().count() + nb_unread_articles = models.Article.objects(readed=False).count() + return render_template('management.html', nb_feeds=nb_feeds, nb_articles=nb_articles, nb_unread_articles=nb_unread_articles)
\ No newline at end of file |