DictionaryDb: fixed return type in get_person_from_gramps_id; added get_place_from_gramps_id
This commit is contained in:
parent
5cb0fa4ca5
commit
7970b04113
@ -660,7 +660,13 @@ class DictionaryDb(DbWriteBase, DbReadBase):
|
||||
for person in self.person_map.values():
|
||||
if person.gramps_id == gramps_id:
|
||||
return person
|
||||
return person
|
||||
return None
|
||||
|
||||
def get_place_from_gramps_id(self, gramps_id):
|
||||
for place in self.place_map.values():
|
||||
if place.gramps_id == gramps_id:
|
||||
return place
|
||||
return None
|
||||
|
||||
def get_number_of_people(self):
|
||||
return len(self.person_map)
|
||||
|
Loading…
Reference in New Issue
Block a user