From 9b4dfcd86e945365a57cc49cd9df26ffc68c84f3 Mon Sep 17 00:00:00 2001 From: Matthew Wall Date: Thu, 30 Jan 2014 21:53:15 +0000 Subject: [PATCH] event.record not event.packet in QC/MinMax --- bin/weewx/wxengine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/weewx/wxengine.py b/bin/weewx/wxengine.py index 8bd3b09f..7a63fc9f 100644 --- a/bin/weewx/wxengine.py +++ b/bin/weewx/wxengine.py @@ -411,7 +411,7 @@ class StdQC(StdService): for obs_type in self.min_max_dict: if event.record.has_key(obs_type) and event.record[obs_type] is not None: if not self.min_max_dict[obs_type][0] <= event.record[obs_type] <= self.min_max_dict[obs_type][1]: - syslog.syslog(syslog.LOG_NOTICE, "wxengine: ignoring %s value of %s, limits are (%s, %s)" % (obs_type, event.packet[obs_type], self.min_max_dict[obs_type[0]], self.min_max_dict[obs_type[1]])) + syslog.syslog(syslog.LOG_NOTICE, "wxengine: ignoring %s value of %s, limits are (%s, %s)" % (obs_type, event.record[obs_type], self.min_max_dict[obs_type[0]], self.min_max_dict[obs_type[1]])) event.record[obs_type] = None #===============================================================================