Better handling of proctoring help URL

This commit is contained in:
Eric Fischer
2017-08-23 14:54:12 -04:00
parent c773e45bae
commit 37241b30a9
2 changed files with 15 additions and 10 deletions

View File

@@ -1192,9 +1192,10 @@ def create_xblock_info(xblock, data=None, metadata=None, include_ancestor_info=F
'enable_timed_exams': xblock.enable_timed_exams
})
elif xblock.category == 'sequential':
rules_url = settings.PROCTORING_SETTINGS.get('LINK_URLS', {}).get('online_proctoring_rules', ""),
xblock_info.update({
'is_proctored_exam': xblock.is_proctored_exam,
'online_proctoring_rules': settings.PROCTORING_SETTINGS.get('LINK_URLS', {}).get('online_proctoring_rules', {}),
'online_proctoring_rules': rules_url,
'is_practice_exam': xblock.is_practice_exam,
'is_time_limited': xblock.is_time_limited,
'exam_review_rules': xblock.exam_review_rules,