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
993c8e47
Commit
993c8e47
authored
Jul 29, 2015
by
chrisndodge
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #47 from edx/cdodge/tweek-timeout-logic
Cdodge/tweek timeout logic
parents
e7b91e39
0147a5e1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
5 deletions
+8
-5
edx_proctoring/api.py
+4
-2
edx_proctoring/templates/proctoring/proctoring_launch_callback.html
+0
-1
edx_proctoring/templates/proctoring/seq_proctored_exam_entrance.html
+1
-1
edx_proctoring/templates/proctoring/seq_proctored_exam_submitted.html
+1
-1
edx_proctoring/tests/test_api.py
+2
-0
No files found.
edx_proctoring/api.py
View file @
993c8e47
...
...
@@ -533,8 +533,10 @@ def get_student_view(user_id, course_id, content_id,
has_time_expired
=
now_utc
>
expires_at
# make sure the attempt has been marked as timed_out, if need be
if
has_time_expired
and
attempt
[
'status'
]
!=
ProctoredExamStudentAttemptStatus
.
timed_out
:
if
has_time_expired
and
attempt
[
'status'
]
==
ProctoredExamStudentAttemptStatus
.
started
:
mark_exam_attempt_timeout
(
exam_id
,
user_id
)
# refetch since we are transitioning state
attempt
=
get_exam_attempt
(
exam_id
,
user_id
)
if
not
has_started_exam
:
# determine whether to show a timed exam only entrance screen
...
...
@@ -552,7 +554,7 @@ def get_student_view(user_id, course_id, content_id,
})
else
:
student_view_template
=
'proctoring/seq_timed_exam_entrance.html'
elif
has_time_expired
:
elif
attempt
[
'status'
]
==
ProctoredExamStudentAttemptStatus
.
timed_out
:
student_view_template
=
'proctoring/seq_timed_exam_expired.html'
elif
attempt
[
'status'
]
==
ProctoredExamStudentAttemptStatus
.
submitted
:
student_view_template
=
'proctoring/seq_proctored_exam_submitted.html'
...
...
edx_proctoring/templates/proctoring/proctoring_launch_callback.html
View file @
993c8e47
...
...
@@ -2,7 +2,6 @@
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<title>
Sample Progress Steps edX
</title>
<style>
body
{
background-color
:
#FAFAFA
;
...
...
edx_proctoring/templates/proctoring/seq_proctored_exam_entrance.html
View file @
993c8e47
...
...
@@ -18,7 +18,7 @@
</a>
<p>
{% blocktrans %}
You will be guided through installing
edX-
approved online proctoring software and
You will be guided through installing
{{platform_name}}
approved online proctoring software and
performing various checks to set up your proctored exam session. Have your photo ID
ready for the photo ID verification step.
<br
/>
Immediately after you complete the set up, you will begin your timed and proctored exam.
<br
/>
...
...
edx_proctoring/templates/proctoring/seq_proctored_exam_submitted.html
View file @
993c8e47
...
...
@@ -15,7 +15,7 @@
<p>
{% blocktrans %}
In general sessions are reviewed in 24-48 hours of submission. If you have questions about
the status of this review after that timeframe,
<a
href=
"#"
>
contact
edX
support
</a>
the status of this review after that timeframe,
<a
href=
"#"
>
contact
{{platform_name}}
support
</a>
{% endblocktrans %}
</p>
<hr>
...
...
edx_proctoring/tests/test_api.py
View file @
993c8e47
...
...
@@ -42,6 +42,7 @@ from edx_proctoring.models import (
ProctoredExam
,
ProctoredExamStudentAllowance
,
ProctoredExamStudentAttempt
,
ProctoredExamStudentAttemptStatus
,
)
from
.utils
import
(
...
...
@@ -140,6 +141,7 @@ class ProctoredExamApiTests(LoggedInTestCase):
user_id
=
self
.
user_id
,
external_id
=
self
.
external_id
,
started_at
=
started_at
if
started_at
else
datetime
.
now
(
pytz
.
UTC
),
status
=
ProctoredExamStudentAttemptStatus
.
started
,
allowed_time_limit_mins
=
10
)
...
...
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