diff --git a/src/event.py b/src/event.py index 92f32e8..16de35c 100644 --- a/src/event.py +++ b/src/event.py @@ -23,7 +23,7 @@ class Event: def event_description(self) -> str: y = self.get_year_span() if self._type == 'N': - return '{}{} né{} il y a {} an{}'.format( + return '{}{} né{} il y a {} an{}'.format( self._p_a.formatted_name(), ' (a épousé {})'.format(self._p_b.formatted_name()) if self._p_b else '', '' if self._p_a.is_male() else 'e', @@ -31,13 +31,13 @@ class Event: 's' if y > 1 else '' ) if self._type == 'M': - return '{} a épousé {} il y a {} an{}'.format( + return '{} a épousé {} il y a {} an{}'.format( self._p_a.formatted_name(), self._p_b.formatted_name(), y, 's' if y > 1 else '' ) - return '{}{} décédé{} il y a {} an{}'.format( + return '{}{} décédé{} il y a {} an{}'.format( self._p_a.formatted_name(), ' (a épousé {})'.format(self._p_b.formatted_name()) if self._p_b else '', '' if self._p_a.is_male() else 'e',