def _section_special_exams(course, access): """ Provide data for the corresponding dashboard section """ course_key = str(course.id) proctoring_provider = course.proctoring_provider escalation_email = None if proctoring_provider == 'proctortrack': escalation_email = course.proctoring_escalation_email from edx_proctoring.api import is_backend_dashboard_available section_data = { 'section_key': 'special_exams', 'section_display_name': _('Special Exams'), 'access': access, 'course_id': course_key, 'escalation_email': escalation_email, 'show_dashboard': is_backend_dashboard_available(course_key), 'show_onboarding': does_backend_support_onboarding(course.proctoring_provider), } return section_data
def _section_special_exams(course, access): """ Provide data for the corresponding dashboard section """ course_key = six.text_type(course.id) proctoring_provider = course.proctoring_provider escalation_email = None if proctoring_provider == 'proctortrack': escalation_email = course.proctoring_escalation_email from edx_proctoring.api import is_backend_dashboard_available section_data = { 'section_key': 'special_exams', 'section_display_name': _('Special Exams'), 'access': access, 'course_id': course_key, 'escalation_email': escalation_email, 'show_dashboard': is_backend_dashboard_available(course_key), 'show_onboarding': does_backend_support_onboarding(course.proctoring_provider), 'enable_exam_resume_proctoring_improvements': EXAM_RESUME_PROCTORING_IMPROVEMENTS.is_enabled(course.id), } return section_data