repo.or.cz
/
mygpo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
update list of CouchDB views in doc
[mygpo.git]
/
couchdb
/
_design
/
podcastlists
/
views
/
random
/
map.js
blob
ac4bb5e7bf67839511240c1bb748e7b654e247ec
1
function (doc)
2
{
3
if(doc.doc_type == "PodcastList")
4
{
5
if(!doc.podcasts || doc.podcasts.length < 1)
6
{
7
return;
8
}
9
10
var random_key = 1;
11
12
if(doc.random_key)
13
{
14
random_key = doc.random_key;
15
}
16
17
emit(random_key, null);
18
}
19
}