@transaction.non_atomic_requests
@require_POST
@ensure_csrf_cookie
@cache_control(no_cache=True, no_store=True, must_revalidate=True)
@require_level('staff')
def get_proctored_exam_results(request, course_id):
 query_features = ['user_email', 'exam_name', 'attempt_code', 'allowed_time_limit_mins', 'is_sample_attempt', 'started_at', 'completed_at', 'status']
 course_key = CourseKey.from_string(course_id)
 try:
  lms.djangoapps.instructor_task.api.submit_proctored_exam_results_report(request, course_key, query_features)
  status_response = _('The proctored exam results report is being created. To view the status of the report, see Pending Tasks below.')
 except AlreadyRunningError:
  status_response = _('The proctored exam results report is currently being created. To view the status of the report, see Pending Tasks below. You will be able to download the report when it is complete.')
 return JsonResponse({'status': status_response})

@ transaction . non_atomic_requests @ require_POST @ ensure_csrf_cookie @ cache_control ( no_cache = True , no_store = True , must_revalidate = True ) @ require_level ( 'staff' ) def get_proctored_exam_results ( request , course_id ) : query_features = [ 'user_email' , 'exam_name' , 'attempt_code' , 'allowed_time_limit_mins' , 'is_sample_attempt' , 'started_at' , 'completed_at' , 'status' ] course_key = CourseKey . from_string ( course_id ) try : lms . djangoapps . instructor_task . api . submit_proctored_exam_results_report ( request , course_key , query_features ) status_response = _ ( 'The proctored exam results report is being created. To view the status of the report, see Pending Tasks below.' ) except AlreadyRunningError : status_response = _ ( 'The proctored exam results report is currently being created. To view the status of the report, see Pending Tasks below. You will be able to download the report when it is complete.' ) return JsonResponse ( { 'status' : status_response } )
return info about proctored exam results in a course as a dict .