From 1bf7ff579ed7234d65feb9ca10bacfa2abe825ac Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Mon, 8 Jul 2013 21:52:24 +0000 Subject: [PATCH] ignore bad Record Gramplet/Report data (the data-verification tool catches them) svn: r22662 --- src/plugins/Records.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/Records.py b/src/plugins/Records.py index ed4d974af..854c3189b 100644 --- a/src/plugins/Records.py +++ b/src/plugins/Records.py @@ -288,6 +288,9 @@ def _find_records(db, filter, callname): def _record(lowest, highest, value, text, handle_type, handle): + if value < 0: # ignore erroneous data + return # (since the data-verification tool already finds it) + if lowest is not None: lowest.append((value, text, handle_type, handle)) lowest.sort(lambda a,b: cmp(a[0], b[0])) # FIXME: Ist das lambda notwendig?