projects
/
MojoFacets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fc15b6
)
skip CouchDB _design documents
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 14 Dec 2010 21:50:32 +0000
(22:50 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 14 Dec 2010 21:50:32 +0000
(22:50 +0100)
lib/MojoFacets/Import/CouchDB.pm
patch
|
blob
|
history
diff --git
a/lib/MojoFacets/Import/CouchDB.pm
b/lib/MojoFacets/Import/CouchDB.pm
index
4b902c4
..
e88ab5c
100644
(file)
--- a/
lib/MojoFacets/Import/CouchDB.pm
+++ b/
lib/MojoFacets/Import/CouchDB.pm
@@
-50,6
+50,7
@@
sub data {
if ( ref $json->{rows} eq 'ARRAY' ) {
foreach my $doc ( @{$json->{rows}} ) {
+ next if $doc->{_id} =~ m{^_design/};
my $flat;
flatten( \$flat, $doc->{doc}, '' );
push @{ $data->{items} }, $flat;