From f37612730fc9be20e59e662cc7b6095834cc4614 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20K=C3=B6gl?= Date: Tue, 4 Sep 2012 11:04:44 +0000 Subject: [PATCH] podcasts must at least have 10 subscribers to be trending --- couchdb/_design/trending/views/podcasts/map.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/couchdb/_design/trending/views/podcasts/map.js b/couchdb/_design/trending/views/podcasts/map.js index a94c3602..bc4b5c3f 100644 --- a/couchdb/_design/trending/views/podcasts/map.js +++ b/couchdb/_design/trending/views/podcasts/map.js @@ -17,6 +17,11 @@ function(doc) return; } + if(cur <= 10) + { + return; + } + var change = cur / prev; /* we only emit improvements */ -- 2.11.4.GIT