Skip to content

Commit

Permalink
remove due date has past check from get_practice_exam_view function.
Browse files Browse the repository at this point in the history
  • Loading branch information
hasnain-naveed committed Jan 6, 2016
1 parent 769e185 commit 80a8dfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions edx_proctoring/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1559,10 +1559,7 @@ def _get_practice_exam_view(exam, context, exam_id, user_id, course_id):
attempt_status = attempt['status'] if attempt else None

if not attempt_status:
if _has_due_date_passed(exam['due_date']):
student_view_template = 'proctored_exam/expired.html'
else:
student_view_template = 'practice_exam/entrance.html'
student_view_template = 'practice_exam/entrance.html'
elif attempt_status == ProctoredExamStudentAttemptStatus.started:
# when we're taking the exam we should not override the view
return None
Expand Down
2 changes: 1 addition & 1 deletion edx_proctoring/templates/practice_exam/submitted.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h3>
{% endblocktrans %}
</p>
<button class="gated-sequence start-timed-exam" data-ajax-url="{{enter_exam_endpoint}}" data-exam-id="{{exam_id}}" data-attempt-proctored=true data-start-immediately=false>

<a>
{% trans "You can also retry this practice exam" %}
</a>
Expand Down

0 comments on commit 80a8dfe

Please sign in to comment.