diff --git a/bin/weewx/__init__.py b/bin/weewx/__init__.py index 823142f7..83140027 100644 --- a/bin/weewx/__init__.py +++ b/bin/weewx/__init__.py @@ -12,7 +12,7 @@ """ import time -__version__="2.3.1" +__version__="2.3.2" # Holds the program launch time in unix epoch seconds: # Useful for calculating 'uptime.' diff --git a/bin/weewx/stats.py b/bin/weewx/stats.py index a601426d..ae98a0ad 100644 --- a/bin/weewx/stats.py +++ b/bin/weewx/stats.py @@ -346,11 +346,8 @@ class StatsDb(object): else: target_val = None - # Make sure the start time is the start-of-day, so the first day is not missed: - first_day = weeutil.weeutil.archiveDaySpan(timespan.start) - # This dictionary is used for interpolating the SQL statement. - interDict = {'start' : first_day.start, + interDict = {'start' : weeutil.weeutil.startOfDay(timespan.start), 'stop' : timespan.stop, 'stats_type' : stats_type, 'aggregateType' : aggregateType, diff --git a/docs/changes.txt b/docs/changes.txt index 5a1cd9c1..d913083c 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -1,7 +1,7 @@ weewx change history -------------------- -X.Y.0 06/XX/13 +2.3.2 06/16/13 Added support for the temperature-only sensor THWR800. Thanks to user fstuyk! @@ -20,8 +20,8 @@ the report engine no longer crashes. If you live at a high latitude and the sun never sets, the Almanac now does the right thing. -Fixed bug that causes the first day in the stats database not to be included -in calculations of all-time stats. +Fixed bug that caused the first day in the stats database to be left out +of calculations of all-time stats. 2.3.1 04/15/13 diff --git a/docs/customizing.htm b/docs/customizing.htm index 5d7472a5..ef957aa8 100644 --- a/docs/customizing.htm +++ b/docs/customizing.htm @@ -21,7 +21,7 @@