diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-07-25 09:21:58 +0200 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-07-25 09:21:58 +0200 |
commit | ed31a6c5af9edb81c4bd2646c74f2ed47f2c21d8 (patch) | |
tree | 528783f37775e6e3e8860574a599da928f02cec0 /source/pyAggr3g470r.py | |
parent | Added a function which returns the number of undeleted documents of the Whoos... (diff) | |
download | newspipe-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-x | source/pyAggr3g470r.py | 4 |
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 |