buildactivepostersranking.py 436 B

1234567891011121314
  1. from django.core.management.base import BaseCommand
  2. from misago.core.management.progressbar import show_progress
  3. from ...activepostersranking import build_active_posters_ranking
  4. class Command(BaseCommand):
  5. help = 'Builds active posters ranking'
  6. def handle(self, *args, **options):
  7. self.stdout.write('\n\nBuilding active posters ranking...')
  8. build_active_posters_ranking()
  9. self.stdout.write('Done!')