Bug fix on wee_report for arbitrary time.

Fixed bug that was introduced in v3.6.0, which prevented wee_report from
working for anything other than the current time.
This commit is contained in:
Tom Keffer
2016-11-24 16:29:53 -08:00
parent 7bd62e05c8
commit 7bcb47fdcd
2 changed files with 4 additions and 1 deletions

View File

@@ -60,7 +60,7 @@ def main():
stn_info = weewx.station.StationInfo(**config_dict['Station'])
t = weewx.reportengine.StdReportEngine(config_dict, stn_info, gen_ts)
t = weewx.reportengine.StdReportEngine(config_dict, stn_info, gen_ts=gen_ts)
# Although the report engine inherits from Thread, we can just run it in the main thread:
t.run()

View File

@@ -23,6 +23,9 @@ Fixed reference to index.html.tmpl in the xstats example.
Changed algorithm for calculating ET to something more appropriate for
hourly values (former algorithm assumed daily values). Fixes issue #160.
Fixed bug that was introduced in v3.6.0, which prevented wee_reports for working
at anything other than the current time.
3.6.2 11/08/2016