fix nrbuilds query
[?]
Nov 2, 2011, 1:35 AM
FFMOQLJQ5NC73KDK2FZZX7PLSSFXRUY2RL27R7XAUTMZKWVXK4GQCDependencies
- [2]
BKOIYITRadded some json responses - [3]
SHYRGAWZhydra: when no external url is given for diff's of git/hg input, revert to a diff done on a local available clone
Change contents
- replacement in src/lib/Hydra/Controller/API.pm at line 192
my @stats = $c->model('DB::Builds')->search($filter, {select => ["count(*)"], as => ["nr"], group_by => ["timestamp - timestamp % $base"], order_by => "timestamp - timestamp % $base DESC", rows => $nr}) ;my @stats = $c->model('DB::Builds')->search($filter, {select => [{ count => "*" }], as => ["nr"], group_by => ["timestamp - timestamp % $base"], order_by => "timestamp - timestamp % $base DESC", rows => $nr}) ;