projects
/
angular-drzb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29222b0
)
distinct on first author
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 13 Mar 2013 09:34:10 +0000
(10:34 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 13 Mar 2013 09:34:10 +0000
(10:34 +0100)
angular-server.pl
patch
|
blob
|
history
diff --git
a/angular-server.pl
b/angular-server.pl
index
94c84ad
..
e6298fc
100755
(executable)
--- a/
angular-server.pl
+++ b/
angular-server.pl
@@
-296,7
+296,7
@@
function(doc) {
} elsif ( $format eq 'key_distinct' ) {
my $found;
- $json->{rows} = [ grep {
$found->{ $_->{key} }++
== 1 } @{ $json->{rows} } ];
+ $json->{rows} = [ grep {
++$found->{ $_->{key} }
== 1 } @{ $json->{rows} } ];
$json->{distinct_rows} = scalar @{ $json->{rows} };
warn "## distinct stats ", dump( $found );