From d34c0104227ddce4f14a09dd6341f91b05ce3b2d Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 20 Apr 2008 04:08:18 +0000 Subject: [PATCH] Added a display of match count svn: r10601 --- src/plugins/AgeOnDate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/AgeOnDate.py b/src/plugins/AgeOnDate.py index f6ee6083e..19434f6c9 100644 --- a/src/plugins/AgeOnDate.py +++ b/src/plugins/AgeOnDate.py @@ -49,8 +49,8 @@ def run(database, document, date): else: sdoc.title(_("People probably alive and their ages on %s") % DateHandler.displayer.display(date)) - sdoc.paragraph("\n") stab.columns(_("Person"), _("Age")) # Actual Date makes column unicode + matches = 0 for person in sdb.all_people(): birth_date = None birth_str = "" @@ -72,6 +72,8 @@ def run(database, document, date): if birth_str != "": stab.row(person, birth_str) stab.row_sort_val(1, birth_sort) + matches += 1 + sdoc.paragraph("\n%d matches.\n" % matches) stab.write(sdoc) sdoc.paragraph("")