DictionaryDb: fixed return type in get_person_from_gramps_id; added get_place_from_gramps_id

This commit is contained in:
Doug Blank 2015-03-15 00:31:15 -04:00
parent 07aec2000a
commit 12490b4600

View File

@ -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)