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
e34ca44f
Commit
e34ca44f
authored
Sep 17, 2015
by
chrisndodge
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #160 from edx/cdodge/enumerate-review-status
better enumerate the SoftwareSecure review status strings
parents
b353ec2b
3596324d
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 @
e34ca44f
...
...
@@ -54,6 +54,8 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
self
.
crypto_key
=
crypto_key
self
.
timeout
=
10
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
):
"""
...
...
@@ -137,9 +139,7 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
# get the SoftwareSecure status on this attempt
review_status
=
payload
[
'reviewStatus'
]
bad_status
=
review_status
not
in
[
'Not Reviewed'
,
'Suspicious'
,
'Rules Violation'
,
'Clean'
]
bad_status
=
review_status
not
in
self
.
passing_review_status
+
self
.
failing_review_status
if
bad_status
:
err_msg
=
(
...
...
@@ -232,7 +232,7 @@ class SoftwareSecureBackendProvider(ProctoringBackendProvider):
# only 'Clean' and 'Rules Violation' could as passing
status
=
(
ProctoredExamStudentAttemptStatus
.
verified
if
review_status
in
[
'Clean'
,
'Rules Violation'
]
if
review_status
in
self
.
passing_review_status
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