aboutsummaryrefslogtreecommitdiff
path: root/source/pyAggr3g470r.py
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-07-25 09:21:58 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-07-25 09:21:58 +0200
commited31a6c5af9edb81c4bd2646c74f2ed47f2c21d8 (patch)
tree528783f37775e6e3e8860574a599da928f02cec0 /source/pyAggr3g470r.py
parentAdded a function which returns the number of undeleted documents of the Whoos... (diff)
downloadnewspipe-ed31a6c5af9edb81c4bd2646c74f2ed47f2c21d8.tar.gz
newspipe-ed31a6c5af9edb81c4bd2646c74f2ed47f2c21d8.tar.bz2
newspipe-ed31a6c5af9edb81c4bd2646c74f2ed47f2c21d8.zip
The /management page dislays the number of indexed documents.
Diffstat (limited to 'source/pyAggr3g470r.py')
-rwxr-xr-xsource/pyAggr3g470r.py4
1 files changed, 3 insertions, 1 deletions
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
bgstack15