diff --git a/changelog.md b/changelog.md index 62a85eb..06d81cf 100644 --- a/changelog.md +++ b/changelog.md @@ -928,3 +928,5 @@ index 465d4ad..aa8bad6 100644 - GH-181 [BUG] xAxis: Date mismatch in combined charts. Especially when using cumulative aggregation. Feel free to comment if you have more infos, or also noticed this issue. # Next + +- Bugfix: Reason: '<' not supported between instances of 'NoneType' and 'float' in the skins/weewx-wdc/year-%Y.html.tmpl file GH-256 diff --git a/skins/weewx-wdc/includes/stat-table.inc b/skins/weewx-wdc/includes/stat-table.inc index e56746b..b4fa589 100644 --- a/skins/weewx-wdc/includes/stat-table.inc +++ b/skins/weewx-wdc/includes/stat-table.inc @@ -80,9 +80,11 @@ #set $stat_month = $get_stat_table_month_obs($time_span_start_ts, $time_span_end_ts) #set $raw_value = $getattr($getattr($stat_month, $stat_table_obs), $agg_for_value).raw - #silent $per_month[$month].append($raw_value) - #silent $per_year[$year].append($raw_value) - #silent $per_all.append($raw_value) + #if $raw_value is not None + #silent $per_month[$month].append($raw_value) + #silent $per_year[$year].append($raw_value) + #silent $per_all.append($raw_value) + #end if $getattr($getattr($stat_month, $stat_table_obs), $agg_for_value)