Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
d6bd4dc4
Commit
d6bd4dc4
authored
Nov 06, 2017
by
Troy Sankey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixup! Make string quoting consistent (prefer single quotes)
parent
0ed80426
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
lms/djangoapps/django_comment_client/management/commands/create_roles_for_existing.py
+1
-1
lms/djangoapps/django_comment_client/management/commands/get_discussion_link.py
+2
-2
No files found.
lms/djangoapps/django_comment_client/management/commands/create_roles_for_existing.py
View file @
d6bd4dc4
...
...
@@ -16,7 +16,7 @@ class Command(BaseCommand):
help
=
'Seed default permisssions and roles.'
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
):
assign_default_role_on_enrollment
(
None
,
enrollment
)
if
i
%
1000
==
0
:
...
...
lms/djangoapps/django_comment_client/management/commands/get_discussion_link.py
View file @
d6bd4dc4
...
...
@@ -5,7 +5,7 @@ from courseware.courses import get_course
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
):
parser
.
add_argument
(
'course_id'
,
...
...
@@ -18,7 +18,7 @@ class Command(BaseCommand):
course
=
get_course
(
course_key
)
if
not
course
:
raise
CommandError
(
"Invalid course id: {}"
.
format
(
course_id
))
raise
CommandError
(
'Invalid course id: {}'
.
format
(
course_id
))
if
course
.
discussion_link
:
self
.
stdout
.
write
(
course
.
discussion_link
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment