2022-10-11 11:23:43 +02:00
|
|
|
from django.core.management.base import BaseCommand
|
2024-11-01 11:44:17 +01:00
|
|
|
from tvorba.models import Deadline
|
2022-10-11 11:23:43 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Command(BaseCommand):
|
|
|
|
help = "Všem deadlinům se zveřejněnou výsledkovkou vygeneruj výsledkovku"
|
|
|
|
|
|
|
|
def handle(self, *args, **options):
|
2024-11-01 11:44:17 +01:00
|
|
|
for deadline in Deadline.objects.filter(verejna_vysledkovka=True):
|
2022-10-11 11:23:43 +02:00
|
|
|
deadline.vygeneruj_vysledkovku()
|
|
|
|
|