Fixed 1 record detection

svn: r317
This commit is contained in:
Don Allingham 2001-08-08 12:45:11 +00:00
parent 53a9a4a055
commit a972469185

View File

@ -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)