6678: Database Differences Report crashes 4.0 beta svn 21228
svn: r23330
This commit is contained in:
parent
196d52c6e5
commit
0f8e1c52e0
@ -33,6 +33,7 @@ from gramps.cli.grampscli import CLIManager
|
||||
from ..plug import BasePluginManager
|
||||
from ..db.dictionary import DictionaryDb
|
||||
from ..const import GRAMPS_LOCALE as glocale
|
||||
from ..constfunc import handle2internal
|
||||
_ = glocale.translation.gettext
|
||||
|
||||
def import_as_dict(filename):
|
||||
@ -136,8 +137,8 @@ def diff_dbs(db1, db2):
|
||||
diffs = []
|
||||
for item in ['Person', 'Family', 'Source', 'Citation', 'Event', 'Media',
|
||||
'Place', 'Repository', 'Note', 'Tag']:
|
||||
handles1 = sorted(db1._tables[item]["handles_func"]())
|
||||
handles2 = sorted(db2._tables[item]["handles_func"]())
|
||||
handles1 = sorted([handle2internal(handle) for handle in db1._tables[item]["handles_func"]()])
|
||||
handles2 = sorted([handle2internal(handle) for handle in db2._tables[item]["handles_func"]()])
|
||||
p1 = 0
|
||||
p2 = 0
|
||||
while p1 < len(handles1) and p2 < len(handles2):
|
||||
|
Loading…
Reference in New Issue
Block a user