Fix StatisticsChart.py date object checking
svn: r4048
This commit is contained in:
parent
746e10295b
commit
0faaae0201
@ -1,3 +1,6 @@
|
|||||||
|
2005-02-18 Eero Tamminen <eerot@sf>
|
||||||
|
* src/plugins/StatisticsChart.py: fix date object checking
|
||||||
|
|
||||||
2005-02-17 Don Allingham <dallingham@users.sourceforge.net>
|
2005-02-17 Don Allingham <dallingham@users.sourceforge.net>
|
||||||
* src/EditPerson.py: more readonly support
|
* src/EditPerson.py: more readonly support
|
||||||
* src/NoteEdit.py: more readonly support
|
* src/NoteEdit.py: more readonly support
|
||||||
|
@ -396,17 +396,19 @@ class Extract:
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
# check whether birth year is within required range
|
# check whether birth year is within required range
|
||||||
birth = self.get_birth(person).get_date_object()
|
birth = self.get_birth(person)
|
||||||
if birth:
|
if birth:
|
||||||
if birth.get_year_valid():
|
birthdate = birth.get_date_object()
|
||||||
year = birth.get_year()
|
if birthdate.get_year_valid():
|
||||||
|
year = birthdate.get_year()
|
||||||
if not (year >= year_from and year <= year_to):
|
if not (year >= year_from and year <= year_to):
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
# if death before range, person's out of range too...
|
# if death before range, person's out of range too...
|
||||||
death = self.get_death(person).get_date_object()
|
death = self.get_death(person)
|
||||||
if death:
|
if death:
|
||||||
if death.get_year_valid() and death.get_year() < year_from:
|
deathdate = death.get_date_object()
|
||||||
|
if deathdate.get_year_valid() and deathdate.get_year() < year_from:
|
||||||
continue
|
continue
|
||||||
if not no_years:
|
if not no_years:
|
||||||
# do not accept people who are not known to be in range
|
# do not accept people who are not known to be in range
|
||||||
|
Loading…
Reference in New Issue
Block a user