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
5d11719a
Commit
5d11719a
authored
Aug 06, 2015
by
chrisndodge
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #69 from edx/cdodge/change-requirement-name
change requirement name to use the content_id
parents
d22a0fbc
f751bda4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
edx_proctoring/api.py
+15
-3
No files found.
edx_proctoring/api.py
View file @
5d11719a
# pylint: disable=too-many-branches
# pylint: disable=too-many-branches, too-many-lines, too-many-statements
# pylint: disable=too-many-statements
"""
"""
In-Proc API (aka Library) for the edx_proctoring subsystem. This is not to be confused with a HTTP REST
In-Proc API (aka Library) for the edx_proctoring subsystem. This is not to be confused with a HTTP REST
...
@@ -575,11 +574,24 @@ def update_attempt_status(exam_id, user_id, to_status):
...
@@ -575,11 +574,24 @@ def update_attempt_status(exam_id, user_id, to_status):
verification
=
'submitted'
verification
=
'submitted'
else
:
else
:
verification
=
'failed'
verification
=
'failed'
log_msg
=
(
'Calling set_credit_requirement_status for '
'user_id {user_id} on {course_id} for '
'content_id {content_id}. Status: {status}'
.
format
(
user_id
=
exam_attempt_obj
.
user_id
,
course_id
=
exam
[
'course_id'
],
content_id
=
exam_attempt_obj
.
proctored_exam
.
content_id
,
status
=
verification
)
)
log
.
info
(
log_msg
)
credit_service
.
set_credit_requirement_status
(
credit_service
.
set_credit_requirement_status
(
user_id
=
exam_attempt_obj
.
user_id
,
user_id
=
exam_attempt_obj
.
user_id
,
course_key_or_id
=
exam
[
'course_id'
],
course_key_or_id
=
exam
[
'course_id'
],
req_namespace
=
'proctored_exam'
,
req_namespace
=
'proctored_exam'
,
req_name
=
'proctored_exam_id:{exam_id}'
.
format
(
exam_id
=
exam_id
)
,
req_name
=
exam_attempt_obj
.
proctored_exam
.
content_id
,
status
=
verification
status
=
verification
)
)
...
...
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