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
move categories into own database
[mygpo.git]
/
couchdb
/
general
/
_design
/
podcasts
/
views
/
flattr
/
map.js
blob
f9a9b9a3ef8d168eb0f76d74c000df267ec3d5db
1
function(doc)
2
{
3
if (doc.doc_type == 'Podcast')
4
{
5
if(doc.flattr_url)
6
{
7
emit(null, null);
8
}
9
}
10
else if(doc.doc_type == 'PodcastGroup')
11
{
12
for(var n in doc.podcasts)
13
{
14
var podcast = doc.podcasts[n];
15
if (podcast.flattr_url)
16
{
17
emit(null, null);
18
return;
19
}
20
}
21
}
22
}