Skip to content

Commit

Permalink
Merge pull request #1014 from uw-it-aca/task/backfill-job
Browse files Browse the repository at this point in the history
backfill_courses is now a provisioning job
  • Loading branch information
jlaney authored Feb 27, 2025
2 parents 2e4749f + c65d855 commit 73e9e55
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sis_provisioner/management/commands/backfill_courses.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright 2025 UW-IT, University of Washington
# SPDX-License-Identifier: Apache-2.0


from django.core.management.base import BaseCommand, CommandError
from sis_provisioner.management.commands import SISProvisionerCommand
from sis_provisioner.dao.canvas import (
get_course_report_data, get_course_by_id, DataFailureException)
from sis_provisioner.dao.course import valid_academic_course_sis_id
Expand All @@ -14,7 +13,7 @@
logger = getLogger(__name__)


class Command(BaseCommand):
class Command(SISProvisionerCommand):
help = "Insert courses from a Canvas course provisioning report file"

def add_arguments(self, parser):
Expand Down Expand Up @@ -105,3 +104,5 @@ def handle(self, *args, **options):
f'Term ID: {course.term_id}, '
f'Created: {course.created_date}, '
f'Expires: {course.expiration_date}')

self.update_job()

0 comments on commit 73e9e55

Please sign in to comment.