Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions xblocks_contrib/lti/lti.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,11 @@ def get_lis_result_sourcedid(self):
def get_course(self):
"""
Return course by course id.

Note: This only works for Modulestore-backed courses.
It will return None for Learning-Core-backed content libraries.
In general, please do not add new code that access Modulestore, because it
will not work in Learning Core. We do it here just to support a legacy feature.
"""
if isinstance(self.location.course_key, CourseKey):
return self.runtime.modulestore.get_course(self.location.course_key)
Expand Down