1 from django
.core
.management
.base
import BaseCommand
2 from mygpo
.data
.historic
import calc_podcast
3 from mygpo
.api
.models
import Podcast
5 class Command(BaseCommand
):
6 def handle(self
, *args
, **options
):
7 max = Podcast
.objects
.count()
10 for p
in Podcast
.objects
.all().order_by('id').iterator():
12 print '%d / %d: %d - %s' % (n
, max, p
.id, p
)