From 8179e66d0b2678aac0e2fdc00d34bea978fed39d Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 29 Jun 2005 21:32:19 +0000 Subject: [PATCH] * src/GrampsDbBase.py: don't count_person for gender stats on add_person, since already done it commit_person svn: r4893 --- gramps2/ChangeLog | 4 ++++ gramps2/src/GrampsDbBase.py | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index a8d21caf9..4f99441b3 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2005-06-29 Don Allingham + * src/GrampsDbBase.py: don't count_person for gender stats on + add_person, since already done it commit_person + 2005-06-29 Martin Hawlisch * src/plugins/DumpGenderStats.py: New plugin for debugging diff --git a/gramps2/src/GrampsDbBase.py b/gramps2/src/GrampsDbBase.py index 33cf37e49..932d0b14d 100644 --- a/gramps2/src/GrampsDbBase.py +++ b/gramps2/src/GrampsDbBase.py @@ -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):