Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-proctoring
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
OpenEdx
edx-proctoring
Commits
bbd7266a
Commit
bbd7266a
authored
Sep 20, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix imports
parent
0b59caa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
edx_proctoring/management/commands/set_attempt_status.py
+6
-6
No files found.
edx_proctoring/management/commands/set_attempt_status.py
View file @
bbd7266a
...
...
@@ -6,11 +6,6 @@ from optparse import make_option
from
django.core.management.base
import
BaseCommand
from
edx_proctoring.api
import
(
update_attempt_status
,
get_exam_by_id
)
from
edx_proctoring.models
import
ProctoredExamStudentAttemptStatus
...
...
@@ -26,7 +21,7 @@ class Command(BaseCommand):
help
=
'exam_id to change'
),
make_option
(
'-u'
,
'--user'
,
metavar
=
'USER'
,
dest
=
'user'
,
dest
=
'user
_id
'
,
help
=
"user_id of user to affect"
),
make_option
(
'-t'
,
'--to'
,
metavar
=
'TO_STATUS'
,
...
...
@@ -39,6 +34,11 @@ class Command(BaseCommand):
Management command entry point, simply call into the signal firiing
"""
from
edx_proctoring.api
import
(
update_attempt_status
,
get_exam_by_id
)
exam_id
=
options
[
'exam_id'
]
user_id
=
options
[
'user_id'
]
to_status
=
options
[
'to_status'
]
...
...
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