Commit d6bd4dc4 by Troy Sankey

Fixup! Make string quoting consistent (prefer single quotes)

parent 0ed80426
...@@ -16,7 +16,7 @@ class Command(BaseCommand): ...@@ -16,7 +16,7 @@ class Command(BaseCommand):
help = 'Seed default permisssions and roles.' help = 'Seed default permisssions and roles.'
def handle(self, *args, **options): def handle(self, *args, **options):
print("Updated roles for ", end=' ') print('Updated roles for ', end=' ')
for i, enrollment in enumerate(CourseEnrollment.objects.filter(is_active=1), start=1): for i, enrollment in enumerate(CourseEnrollment.objects.filter(is_active=1), start=1):
assign_default_role_on_enrollment(None, enrollment) assign_default_role_on_enrollment(None, enrollment)
if i % 1000 == 0: if i % 1000 == 0:
......
...@@ -5,7 +5,7 @@ from courseware.courses import get_course ...@@ -5,7 +5,7 @@ from courseware.courses import get_course
class Command(BaseCommand): class Command(BaseCommand):
help = "Write a discussion link for a given course on standard output." help = 'Write a discussion link for a given course on standard output.'
def add_arguments(self, parser): def add_arguments(self, parser):
parser.add_argument('course_id', parser.add_argument('course_id',
...@@ -18,7 +18,7 @@ class Command(BaseCommand): ...@@ -18,7 +18,7 @@ class Command(BaseCommand):
course = get_course(course_key) course = get_course(course_key)
if not course: if not course:
raise CommandError("Invalid course id: {}".format(course_id)) raise CommandError('Invalid course id: {}'.format(course_id))
if course.discussion_link: if course.discussion_link:
self.stdout.write(course.discussion_link) self.stdout.write(course.discussion_link)
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