DictionaryDb: fixed return type in get_person_from_gramps_id; added get_place_from_gramps_id
This commit is contained in:
parent
07aec2000a
commit
12490b4600
@ -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