Add gramps_id to repository & note text data lists

This commit is contained in:
David Straub 2020-12-08 17:36:10 +01:00 committed by Nick Hall
parent 1d56e7d47a
commit c740aacce0
2 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ class Note(BasicPrimaryObject):
:returns: The list of all textual attributes of the object. :returns: The list of all textual attributes of the object.
:rtype: list :rtype: list
""" """
return [str(self.text)] return [str(self.text), self.gramps_id]
def get_referenced_handles(self): def get_referenced_handles(self):
""" """

View File

@ -138,7 +138,7 @@ class Repository(NoteBase, AddressBase, UrlBase, IndirectCitationBase,
:returns: Returns the list of all textual attributes of the object. :returns: Returns the list of all textual attributes of the object.
:rtype: list :rtype: list
""" """
return [self.name, str(self.type)] return [self.name, str(self.type), self.gramps_id]
def get_text_data_child_list(self): def get_text_data_child_list(self):
""" """