Commit 571527f7 by Justin Riley

s/fix_missing_extensions/reapply_all_extensions/g

parent 2bc21e73
...@@ -3,7 +3,7 @@ from django.http import Http404 ...@@ -3,7 +3,7 @@ from django.http import Http404
from django.core.management.base import BaseCommand, CommandError from django.core.management.base import BaseCommand, CommandError
from courseware.courses import get_course_by_id from courseware.courses import get_course_by_id
from instructor.views.tools import fix_missing_extensions from instructor.views.tools import reapply_all_extensions
class Command(BaseCommand): class Command(BaseCommand):
...@@ -15,6 +15,6 @@ class Command(BaseCommand): ...@@ -15,6 +15,6 @@ class Command(BaseCommand):
raise CommandError("insufficient arguments") raise CommandError("insufficient arguments")
try: try:
course = get_course_by_id(args[0]) course = get_course_by_id(args[0])
fix_missing_extensions(course) reapply_all_extensions(course)
except (ValueError, Http404) as e: except (ValueError, Http404) as e:
raise CommandError(e) raise CommandError(e)
...@@ -254,7 +254,7 @@ def dump_student_extensions(course, student): ...@@ -254,7 +254,7 @@ def dump_student_extensions(course, student):
"data": data} "data": data}
def fix_missing_extensions(course): def reapply_all_extensions(course):
units = get_units_with_due_date(course) units = get_units_with_due_date(course)
units = dict([(u.location.url(), u) for u in units]) units = dict([(u.location.url(), u) for u in units])
msks = units.keys() msks = units.keys()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment