@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_course_survey_results(request, course_id):
 course_key = SlashSeparatedCourseKey.from_deprecated_string(course_id)
 try:
  lms.djangoapps.instructor_task.api.submit_course_survey_report(request, course_key)
  status_response = _('The survey report is being created. To view the status of the report, see Pending Tasks below.')
 except AlreadyRunningError:
  status_response = _('The survey 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_course_survey_results ( request , course_id ) : course_key = SlashSeparatedCourseKey . from_deprecated_string ( course_id ) try : lms . djangoapps . instructor_task . api . submit_course_survey_report ( request , course_key ) status_response = _ ( 'The survey report is being created. To view the status of the report, see Pending Tasks below.' ) except AlreadyRunningError : status_response = _ ( 'The survey 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 } )
get the survey results report for the particular course .