diff --git a/ChangeLog b/ChangeLog index c14282dd9..64dd72325 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ 2007-06-24 Alex Roitman * src/GrampsDb/_GrampsBSDDB.py (load): Typo. + (version_supported): Default to the current version. * src/DbLoader.py (read_file): Fix error reporting. 2007-06-23 Don Allingham diff --git a/src/GrampsDb/_GrampsBSDDB.py b/src/GrampsDb/_GrampsBSDDB.py index 758fda95f..bb8682a80 100644 --- a/src/GrampsDb/_GrampsBSDDB.py +++ b/src/GrampsDb/_GrampsBSDDB.py @@ -380,8 +380,7 @@ class GrampsBSDDB(GrampsDbBase, UpdateCallback): self.metadata.sync() def version_supported(self): - dbversion = self.metadata.get('version', default=0) - print dbversion + dbversion = self.metadata.get('version',default=_DBVERSION) return ((dbversion <= _DBVERSION) and (dbversion >= _MINVERSION)) def need_upgrade(self):