From 3383a45b4c015bb702fc51638d6813955fd1627a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Fontaine?= Date: Fri, 17 Nov 2017 13:54:38 +0100 Subject: [PATCH] add life sketch in notes --- getmyancestors.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/getmyancestors.py b/getmyancestors.py index 01e29e1..56a060d 100755 --- a/getmyancestors.py +++ b/getmyancestors.py @@ -446,6 +446,8 @@ class Indi: self.occupations.add(Fact(y, self.tree)) if y['type'] == u'http://gedcomx.org/MilitaryService': self.military.add(Fact(y, self.tree)) + if y['type'] == u'http://familysearch.org/v1/LifeSketch': + self.notes.add(Note('=== Life Sketch ===\n' + y['value'], self.tree)) if 'sources' in x: for y in x['sources']: source = self.tree.add_source(y['descriptionId']) @@ -540,7 +542,7 @@ class Indi: for contributors in entries['contributors']: temp.add(contributors['name']) if temp: - text = 'Contributeurs :\n' + '\n'.join(sorted(temp)) + text = '=== Contributors ===\n' + '\n'.join(sorted(temp)) for n in self.tree.notes: if n.text == text: self.notes.add(n) @@ -683,7 +685,7 @@ class Fam: for contributors in entries['contributors']: temp.add(contributors['name']) if temp: - text = 'Contributeurs :\n' + '\n'.join(sorted(temp)) + text = '=== Contributors ===\n' + '\n'.join(sorted(temp)) for n in self.tree.notes: if n.text == text: self.notes.add(n) -- 2.52.0