Skip to content

Commit

Permalink
Export LTI settings for MOOC-Grader exercises in the aplus-json
Browse files Browse the repository at this point in the history
  • Loading branch information
markkuriekkinen committed Nov 3, 2022
1 parent 6b7ac3a commit bec6493
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions util/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,17 @@ def exercise(
if 'url' in exercise:
of['url'] = exercise['url']

if 'lti' in exercise:
for k in (
'lti',
'lti_context_id',
'lti_resource_link_id',
'lti_aplus_get_and_post',
'lti_open_in_iframe',
):
if k in exercise:
of[k] = exercise[k]

if 'exercise_info' in exercise:
of['exercise_info'] = exercise['exercise_info']
else:
Expand Down

0 comments on commit bec6493

Please sign in to comment.