def submit_reset_problem_attempts_in_entrance_exam(request, usage_key, student):
 modulestore().get_item(usage_key)
 task_type = 'reset_problem_attempts'
 task_class = reset_problem_attempts
 (task_input, task_key) = encode_entrance_exam_and_student_input(usage_key, student)
 return submit_task(request, task_type, task_class, usage_key.course_key, task_input, task_key)

def submit_reset_problem_attempts_in_entrance_exam ( request , usage_key , student ) : modulestore ( ) . get_item ( usage_key ) task_type = 'reset_problem_attempts' task_class = reset_problem_attempts ( task_input , task_key ) = encode_entrance_exam_and_student_input ( usage_key , student ) return submit_task ( request , task_type , task_class , usage_key . course_key , task_input , task_key )
request to have attempts reset for a entrance exam as a background task .