You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
padelclub_backend/tournaments/management/commands/check_deadlines.py

10 lines
445 B

from django.core.management.base import BaseCommand
from tournaments.tasks import check_confirmation_deadlines
class Command(BaseCommand):
help = 'Run confirmation deadline check immediately'
def handle(self, *args, **options):
# Run the function directly (not through the task queue)
check_confirmation_deadlines(schedule=0)
self.stdout.write(self.style.SUCCESS('Successfully checked confirmation deadlines'))