* src/DetAncestralReport.py (write_death): Proper checks for valid day
* src/DetDescendantReport.py (write_death): Likewise. svn: r1641
This commit is contained in:
parent
f13dcf2e38
commit
62b65130b4
@ -324,10 +324,10 @@ class DetAncestorReport(Report):
|
||||
place= "_____________"
|
||||
|
||||
if date.getDate() != "":
|
||||
if date.getDay() > 0 and date.getMonth() > 0 and \
|
||||
if date.getDay() and date.getMonth() and \
|
||||
rptOptions.fullDate == reportOptions.Yes:
|
||||
fulldate= date.getDate()
|
||||
elif date.getMonth() > 0 and rptOptions.fullDate == reportOptions.Yes:
|
||||
elif date.getMonth() and rptOptions.fullDate == reportOptions.Yes:
|
||||
fulldate= "%s %s" % (date.getMonth(), date.getYear())
|
||||
else: fulldate= ""
|
||||
elif rptOptions.blankDate == reportOptions.Yes:
|
||||
|
@ -336,10 +336,10 @@ class DetDescendantReport(Report):
|
||||
place= "_____________"
|
||||
|
||||
if date.getDate() != "":
|
||||
if date.getDay() > 0 and date.getMonth() > 0 and \
|
||||
if date.getDay() and date.getMonth() and \
|
||||
rptOptions.fullDate == reportOptions.Yes:
|
||||
fulldate= date.getDate()
|
||||
elif date.getMonth() > 0 and rptOptions.fullDate == reportOptions.Yes:
|
||||
elif date.getMonth() and rptOptions.fullDate == reportOptions.Yes:
|
||||
fulldate= "%s %s" % (date.getMonth(), date.getYear())
|
||||
else: fulldate= ""
|
||||
elif rptOptions.blankDate == reportOptions.Yes:
|
||||
|
Loading…
Reference in New Issue
Block a user