Source code for oioioi.rankings.management.commands.mark_all_rankings_to_recalculate

from django.core.management.base import BaseCommand
from django.utils.translation import gettext as _

from oioioi.rankings.models import Ranking


[docs]class Command(BaseCommand):
[docs] help = _( "Mark all rankings as one's needing recalculation." "In combination with rankingsd will eventually recalculate all rankings." )
[docs] def handle(self, *args, **options): Ranking.invalidate_queryset(Ranking.objects.all())