update list of CouchDB views in doc
[mygpo.git] / couchdb / _design / podcastlists / views / random / map.js
blobac4bb5e7bf67839511240c1bb748e7b654e247ec
1 function (doc)
3     if(doc.doc_type == "PodcastList")
4     {
5         if(!doc.podcasts || doc.podcasts.length < 1)
6         {
7             return;
8         }
10         var random_key = 1;
12         if(doc.random_key)
13         {
14             random_key = doc.random_key;
15         }
17         emit(random_key, null);
18     }