From 80527732dfee4a1fc0a0dc7e01a7fbc030ad65d1 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 24 Oct 2006 19:22:47 +0000 Subject: [PATCH] * src/GrampsDb/_ReadGedcom.py (parse_source_eference): Cap confidence value. svn: r7433 --- ChangeLog | 4 ++++ src/GrampsDb/_ReadGedcom.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index f8a057df5..ce909eb1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-10-24 Alex Roitman + * src/GrampsDb/_ReadGedcom.py (parse_source_eference): Cap + confidence value. + 2006-10-23 Alex Roitman * configure.in: Bump up release number. * NEWS: Typo. diff --git a/src/GrampsDb/_ReadGedcom.py b/src/GrampsDb/_ReadGedcom.py index fff5ed706..23c1fb7bf 100644 --- a/src/GrampsDb/_ReadGedcom.py +++ b/src/GrampsDb/_ReadGedcom.py @@ -2116,6 +2116,8 @@ class GedcomParser(UpdateCallback): val = int(matches[2]) except ValueError: return + # If value is greater than 3, cap at 3 + val = min(val,3) if val > 1: source.set_confidence_level(val+1) else: