Skip to content

Commit

Permalink
Merge pull request #149 from SemanticMediaWiki/tseries
Browse files Browse the repository at this point in the history
Fix timeseries format with 0, refs #145
  • Loading branch information
mwjames committed Feb 17, 2016
2 parents 10ff2ae + 3a26fcc commit 93d25ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions formats/timeseries/SRF_Timeseries.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected function getAggregatedTimeSeries( SMWQueryResult $result, $outputMode
$rowSum = array_sum( $sum );

// Check the sum and threshold/min
if ( $timeStamp !== '' && $rowSum == true && $rowSum >= $this->params['min'] ) {
if ( $timeStamp !== '' && $field->getPrintRequest()->getTypeID() !== '_dat' && $rowSum >= $this->params['min'] ) {
$series[$group] = array ( $timeStamp , $rowSum ) ;
}
}
Expand Down Expand Up @@ -263,4 +263,4 @@ public function getParamDefinitions( array $definitions ) {

return $params;
}
}
}

0 comments on commit 93d25ac

Please sign in to comment.