Mercurial > hg > Feedworm
changeset 184:006477cdc7de
fix abug in the view
author | dirk |
---|---|
date | Sun, 11 Sep 2011 07:44:11 +0200 |
parents | ac1de0a467fd |
children | 0b4c8dc13b7c |
files | backend/couchdb/CouchApp/feedworm/views/feeds_with_unread_entries/map.js backend/couchdb/CouchApp/feedworm/views/feeds_with_unread_entries/reduce.js |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/backend/couchdb/CouchApp/feedworm/views/feeds_with_unread_entries/map.js Sun Sep 11 06:51:14 2011 +0200 +++ b/backend/couchdb/CouchApp/feedworm/views/feeds_with_unread_entries/map.js Sun Sep 11 07:44:11 2011 +0200 @@ -1,6 +1,6 @@ function(doc) { - if (doc.doctype == "feedEntry") + if (doc.doctype == "feedEntry" && !doc.read) { emit(doc.feed, null); }
--- a/backend/couchdb/CouchApp/feedworm/views/feeds_with_unread_entries/reduce.js Sun Sep 11 06:51:14 2011 +0200 +++ b/backend/couchdb/CouchApp/feedworm/views/feeds_with_unread_entries/reduce.js Sun Sep 11 07:44:11 2011 +0200 @@ -1,4 +1,4 @@ function(keys, values, rereduce) { - return true; + return true; }