From 62d8aa6ee69f086af38469ae0a4e82e751d368e0 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Mon, 2 Jun 2003 22:46:58 +0000 Subject: [PATCH] * src/DetAncestralReport.py (write_death): Proper checks for valid day * src/DetDescendantReport.py (write_death): Likewise. svn: r1641 --- src/plugins/DetAncestralReport.py | 4 ++-- src/plugins/DetDescendantReport.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/DetAncestralReport.py b/src/plugins/DetAncestralReport.py index 20a3a0924..9bb0bf547 100644 --- a/src/plugins/DetAncestralReport.py +++ b/src/plugins/DetAncestralReport.py @@ -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: diff --git a/src/plugins/DetDescendantReport.py b/src/plugins/DetDescendantReport.py index 95445bbe8..60969aa79 100644 --- a/src/plugins/DetDescendantReport.py +++ b/src/plugins/DetDescendantReport.py @@ -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: