buildactivepostersranking.py 384 B

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