From a972469185a14302f72d08d85c4d03124c353f68 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 8 Aug 2001 12:45:11 +0000 Subject: [PATCH] Fixed 1 record detection svn: r317 --- gramps/src/plugins/count_anc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/src/plugins/count_anc.py b/gramps/src/plugins/count_anc.py index 9d65c5be6..d171f5673 100644 --- a/gramps/src/plugins/count_anc.py +++ b/gramps/src/plugins/count_anc.py @@ -49,12 +49,12 @@ def report(database,person): text = text + title + ':\n' thisgensize=1 gen=1 - while(thisgensize>0): + while thisgensize>0: thisgensize=0 - if( len(thisgen) >0): + if len(thisgen) >0: thisgensize=len(thisgen) gen= gen-1 - if( thisgensize > 1 ): + if thisgensize == 1 : text = text + _("Generation %d has 1 individual.\n") % (gen) else: text = text + _("Generation %d has %d individuals.\n") % (gen, thisgensize)