projects
/
MojoFacets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ece3c15
)
fix _design doc skipping
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 15 Dec 2010 18:02:32 +0000
(19:02 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 15 Dec 2010 18:02:32 +0000
(19:02 +0100)
lib/MojoFacets/Import/CouchDB.pm
patch
|
blob
|
history
diff --git
a/lib/MojoFacets/Import/CouchDB.pm
b/lib/MojoFacets/Import/CouchDB.pm
index
e88ab5c
..
96c341f
100644
(file)
--- a/
lib/MojoFacets/Import/CouchDB.pm
+++ b/
lib/MojoFacets/Import/CouchDB.pm
@@
-50,7
+50,7
@@
sub data {
if ( ref $json->{rows} eq 'ARRAY' ) {
foreach my $doc ( @{$json->{rows}} ) {
- next if $doc->{
_id} =~ m{^_design/};
+ next if $doc->{
id} =~ m{^_design/}; # $doc->{id} == $doc->{doc}->{_id}
my $flat;
flatten( \$flat, $doc->{doc}, '' );
push @{ $data->{items} }, $flat;