repo.or.cz
/
mygpo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[Profile] fix sorting podcasts
[mygpo.git]
/
mygpo
/
data
/
tasks.py
blob
99ee586a71fc85169b6310ad5c94dba157a4171b
1
from
mygpo
.
celery
import
celery
2
from
mygpo
.
data
.
feeddownloader
import
PodcastUpdater
3
4
5
@celery
.
task
6
def
update_podcasts
(
podcast_urls
):
7
""" Task to update a podcast """
8
updater
=
PodcastUpdater
()
9
podcasts
=
updater
.
update_queue
(
podcast_urls
)
10
return
list
(
podcasts
)