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
5cc88ec1
Commit
5cc88ec1
authored
Jan 10, 2013
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
example course_id for compute_grades management command
parent
9853c632
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lms/djangoapps/instructor/management/commands/compute_grades.py
+4
-2
No files found.
lms/djangoapps/instructor/management/commands/compute_grades.py
View file @
5cc88ec1
...
...
@@ -19,15 +19,17 @@ class Command(BaseCommand):
help
=
"Compute grades for all students in a course, and store result in DB.
\n
"
help
+=
"Usage: compute_grades course_id_or_dir
\n
"
help
+=
" course_id_or_dir: either course_id or course_dir
\n
"
help
+=
'Example course_id: MITx/8.01rq_MW/Classical_Mechanics_Reading_Questions_Fall_2012_MW_Section'
def
handle
(
self
,
*
args
,
**
options
):
print
"args = "
,
args
course_id
=
'MITx/8.01rq_MW/Classical_Mechanics_Reading_Questions_Fall_2012_MW_Section'
if
len
(
args
)
>
0
:
course_id
=
args
[
0
]
else
:
print
self
.
help
return
try
:
course
=
get_course_by_id
(
course_id
)
...
...
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