From ed31a6c5af9edb81c4bd2646c74f2ed47f2c21d8 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 25 Jul 2013 09:21:58 +0200 Subject: The /management page dislays the number of indexed documents. --- source/pyAggr3g470r.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/pyAggr3g470r.py') diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index 05ec7479..4a99ce2d 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -139,11 +139,13 @@ class pyAggr3g470r(object): nb_favorites = self.mongo.nb_favorites() nb_articles = format(self.mongo.nb_articles(), ",d") nb_unread_articles = format(self.mongo.nb_unread_articles(), ",d") + nb_indexed_documents = format(search.nb_documents(), ",d") tmpl = lookup.get_template("management.html") return tmpl.render(feeds=feeds, nb_mail_notifications=nb_mail_notifications, \ nb_favorites=nb_favorites, nb_articles=nb_articles, \ nb_unread_articles=nb_unread_articles, \ - mail_notification_enabled=conf.MAIL_ENABLED) + mail_notification_enabled=conf.MAIL_ENABLED, \ + nb_indexed_documents=nb_indexed_documents) management.exposed = True -- cgit