Commit 2f060733 by John Eskew

Pass _get_course_module() depth param down into modulestore get_course() instead…

Pass _get_course_module() depth param down into modulestore get_course() instead of hard-coded zero.
parent f94c677a
......@@ -722,7 +722,7 @@ class SplitMongoModuleStore(SplitBulkWriteMixin, ModuleStoreWriteBase):
course_entry = self._lookup_course(course_id)
root = course_entry['structure']['root']
result = self._load_items(course_entry, [root], 0, lazy=True, **kwargs)
result = self._load_items(course_entry, [root], depth, lazy=True, **kwargs)
return result[0]
def has_course(self, course_id, ignore_case=False, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment