Skip to content

Commit

Permalink
Backout - it introduced false positives about living alone
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Jul 26, 2024
1 parent bbf9a6f commit 849b762
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -5085,7 +5085,7 @@ sub print_person
}

if(($count == 0) || !places_are_the_same({ person => $person, first => $residence, second => $residencelist[$count - 1] })) {
if($birth && $dateofbirth && $rdate && ($rdate eq $dateofbirth) &&
if($birth && $dateofbirth && $rdate && (datecmp($rdate, $dateofbirth) == 0) &&
places_are_the_same({ person => $person, first => $birth, second => $residence})) {
# This residence record is for the place of birth, which is
# printed elsewhere
Expand Down Expand Up @@ -5604,9 +5604,6 @@ sub print_person
$residencestring .= ')';
$first = 0;
}
} else {
delete $living_with{'mother'};
delete $living_with{'father'};
}
} elsif(($same_road_as_mother || $same_road_as_father) && !$printed_sibling) {
if($age >= 30) {
Expand Down

0 comments on commit 849b762

Please sign in to comment.