aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource/pyAggr3g470r.py4
-rw-r--r--source/static/templates/management.html2
2 files changed, 4 insertions, 2 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
diff --git a/source/static/templates/management.html b/source/static/templates/management.html
index 313b2cfd..bbb98e27 100644
--- a/source/static/templates/management.html
+++ b/source/static/templates/management.html
@@ -64,7 +64,7 @@
<br />
<form method=get action="/index_base">
- <input type="submit" value="Index database" /> (faster searches)
+ <input type="submit" value="Index database" /> (${nb_indexed_documents} indexed documents)
</form>
bgstack15