Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get podcasts with update-needing episodes from CouchDB (bug 1422)
- Loading branch information
1 parent
086f833
commit fce6409
Showing
3 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
mygpo/maintenance/_design/views/episodes_need_update/map.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
function(doc) | ||
{ | ||
if(doc.doc_type == "Episode") | ||
{ | ||
if(!doc.title && !doc.outdated) | ||
{ | ||
emit(doc.podcast, null); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_count |