Skip to content

Commit

Permalink
Fixing view json.
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalBush committed Jul 9, 2011
1 parent cc86c21 commit bb01614
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions map-reduce/views/purchases.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"language": "javascript",
"views":{
"by_date": {
"map": "function(doc) {
var date=new Date(doc.Timestamp);
emit([date.getFullYear(),date.getMonth()+1,date.getDate()], doc.Amount);
}",
"reduce": "function(keys, values) {
return sum(values);
}"
}
}
"language": "javascript",
"views":{
"by_date":{
"map": "function(doc){
var date=new Date(doc.Timestamp);
emit([date.getFullYear(),date.getMonth()+1,date.getDate()], doc.Amount);
}",
"reduce": "function(keys,values) {
return sum(values);
}"
}
}
}

0 comments on commit bb01614

Please sign in to comment.