Fixed 1 record detection
svn: r317
This commit is contained in:
parent
53a9a4a055
commit
a972469185
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user