Added a display of match count
svn: r10601
This commit is contained in:
parent
e3140b4fce
commit
d34c010422
@ -49,8 +49,8 @@ def run(database, document, date):
|
|||||||
else:
|
else:
|
||||||
sdoc.title(_("People probably alive and their ages on %s") %
|
sdoc.title(_("People probably alive and their ages on %s") %
|
||||||
DateHandler.displayer.display(date))
|
DateHandler.displayer.display(date))
|
||||||
sdoc.paragraph("\n")
|
|
||||||
stab.columns(_("Person"), _("Age")) # Actual Date makes column unicode
|
stab.columns(_("Person"), _("Age")) # Actual Date makes column unicode
|
||||||
|
matches = 0
|
||||||
for person in sdb.all_people():
|
for person in sdb.all_people():
|
||||||
birth_date = None
|
birth_date = None
|
||||||
birth_str = ""
|
birth_str = ""
|
||||||
@ -72,6 +72,8 @@ def run(database, document, date):
|
|||||||
if birth_str != "":
|
if birth_str != "":
|
||||||
stab.row(person, birth_str)
|
stab.row(person, birth_str)
|
||||||
stab.row_sort_val(1, birth_sort)
|
stab.row_sort_val(1, birth_sort)
|
||||||
|
matches += 1
|
||||||
|
sdoc.paragraph("\n%d matches.\n" % matches)
|
||||||
stab.write(sdoc)
|
stab.write(sdoc)
|
||||||
sdoc.paragraph("")
|
sdoc.paragraph("")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user