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