From f3b556ea758963d704ef53a77c7a6d976aa3928a 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 --- src/plugins/count_anc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/count_anc.py b/src/plugins/count_anc.py index 9d65c5be6..d171f5673 100644 --- a/src/plugins/count_anc.py +++ b/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)