if bornAfter==0:
bornAfter = hadChild[0]-100
+ u = "Select styles.startYear, styles.style from"\
+ +" people INNER JOIN styles"\
+ +" ON people.ID = styles.ID"\
+ +" WHERE people.ID = ? and"\
+ +" styles.startYear <>0"\
+ +" ORDER BY styles.startYear;"
+
+ for r in run_query(u,t):
+ out = out + r[1] + " from " + str(r[0])\
+ + newLine
+ if bornAfter ==0:
+ bornAfter = r[0] -100
+ break
+
if bornAfter!=0:
if bornBefore == 0:
out = out + "probably born "\
+" and " + str(bornBefore)
out = out + newLine
-
year = row[2]
return out
output = output + print_tagged_name('With',r,newLine)
#age when child born
- age = row[2]-bornYear
- output = output[:-4] + " at the age of "+str(age) + newLine
+ if row[2] !=0 and bornYear != 0:
+ age = row[2]-bornYear
+ output = output[:-4] + " at the age of "+str(age) + newLine
output = output + newLine