Commit c764e433 by Muhammad Shoaib

PHX-71 Passed the practice exam flag to SoftwareSecure API when creating attempt

parent 0302fe99
......@@ -262,7 +262,7 @@ def create_exam_attempt(exam_id, user_id, taking_as_proctored=False):
context={
'time_limit_mins': allowed_time_limit_mins,
'attempt_code': attempt_code,
'is_sample_attempt': False,
'is_sample_attempt': exam['is_practice_exam'],
'callback_url': callback_url,
'full_name': full_name,
}
......@@ -275,7 +275,7 @@ def create_exam_attempt(exam_id, user_id, taking_as_proctored=False):
allowed_time_limit_mins,
attempt_code,
taking_as_proctored,
False,
exam['is_practice_exam'],
external_id
)
return attempt.id
......
......@@ -222,7 +222,7 @@ class ProctoredExamStudentAttempt(TimeStampedModel):
# in case there is an option to opt-out
taking_as_proctored = models.BooleanField()
# Whether this attampt is considered a sample attempt, e.g. to try out
# Whether this attempt is considered a sample attempt, e.g. to try out
# the proctoring software
is_sample_attempt = models.BooleanField()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment