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
edx
edx-proctoring
Commits
3596324d
Commit
3596324d
authored
Sep 17, 2015
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better enumerate the SoftwareSecure review status strings
parent
b353ec2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
edx_proctoring/backends/software_secure.py
+4
-4
No files found.
edx_proctoring/backends/software_secure.py
View file @
3596324d
...
@@ -54,6 +54,8 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
...
@@ -54,6 +54,8 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
self
.
crypto_key
=
crypto_key
self
.
crypto_key
=
crypto_key
self
.
timeout
=
10
self
.
timeout
=
10
self
.
software_download_url
=
software_download_url
self
.
software_download_url
=
software_download_url
self
.
passing_review_status
=
[
'Clean'
,
'Rules Violation'
]
self
.
failing_review_status
=
[
'Not Reviewed'
,
'Suspicious'
]
def
register_exam_attempt
(
self
,
exam
,
context
):
def
register_exam_attempt
(
self
,
exam
,
context
):
"""
"""
...
@@ -137,9 +139,7 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
...
@@ -137,9 +139,7 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
# get the SoftwareSecure status on this attempt
# get the SoftwareSecure status on this attempt
review_status
=
payload
[
'reviewStatus'
]
review_status
=
payload
[
'reviewStatus'
]
bad_status
=
review_status
not
in
[
bad_status
=
review_status
not
in
self
.
passing_review_status
+
self
.
failing_review_status
'Not Reviewed'
,
'Suspicious'
,
'Rules Violation'
,
'Clean'
]
if
bad_status
:
if
bad_status
:
err_msg
=
(
err_msg
=
(
...
@@ -232,7 +232,7 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
...
@@ -232,7 +232,7 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
# only 'Clean' and 'Rules Violation' could as passing
# only 'Clean' and 'Rules Violation' could as passing
status
=
(
status
=
(
ProctoredExamStudentAttemptStatus
.
verified
ProctoredExamStudentAttemptStatus
.
verified
if
review_status
in
[
'Clean'
,
'Rules Violation'
]
if
review_status
in
self
.
passing_review_status
else
ProctoredExamStudentAttemptStatus
.
rejected
else
ProctoredExamStudentAttemptStatus
.
rejected
)
)
...
...
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