Source code for intranet.apps.events.management.commands.import_sports

from django.core.management.base import BaseCommand

from ...tasks import pull_sports_schedules


[docs]class Command(BaseCommand): help = "Import sports schedule for specified month"
[docs] def handle(self, *args, **options): pull_sports_schedules(options["month"])
[docs] def add_arguments(self, parser): parser.add_argument("month", type=int)