* src/GrampsDbBase.py: don't count_person for gender stats on

add_person, since already done it commit_person


svn: r4893
This commit is contained in:
Don Allingham 2005-06-29 21:32:19 +00:00
parent b34f6acb50
commit 8179e66d0b
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2005-06-29 Don Allingham <don@gramps-project.org>
* src/GrampsDbBase.py: don't count_person for gender stats on
add_person, since already done it commit_person
2005-06-29 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/plugins/DumpGenderStats.py: New plugin for debugging

View File

@ -545,7 +545,6 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback):
transaction.add(PERSON_KEY, val, None)
self.person_map[str(val)] = person.serialize()
self.emit('person-add', ([str(val)],))
self.genderStats.count_person (person, self)
return person
def find_source_from_handle(self,val,transaction):
@ -667,7 +666,6 @@ class GrampsDbBase(GrampsDBCallback.GrampsDBCallback):
if not person.get_handle():
person.set_handle(self.create_id())
self.commit_person(person,transaction)
self.genderStats.count_person (person, self)
return person.get_handle()
def add_family(self,family,transaction):