From 62b65130b4c051736484be1b9fefdfb9f5098f80 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 --- gramps2/src/plugins/DetAncestralReport.py | 4 ++-- gramps2/src/plugins/DetDescendantReport.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gramps2/src/plugins/DetAncestralReport.py b/gramps2/src/plugins/DetAncestralReport.py index 20a3a0924..9bb0bf547 100644 --- a/gramps2/src/plugins/DetAncestralReport.py +++ b/gramps2/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/gramps2/src/plugins/DetDescendantReport.py b/gramps2/src/plugins/DetDescendantReport.py index 95445bbe8..60969aa79 100644 --- a/gramps2/src/plugins/DetDescendantReport.py +++ b/gramps2/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: