Commit fc210ad6 by Syed Hassan Raza

fix inline comments

parent 663a605a
......@@ -67,9 +67,9 @@ def get_blocks(
blocks = get_course_blocks(user, usage_key, transformers)
except KeyError:
# If KeyError raises trying to exchange usage_key between mongo and split modulestores may fix the error.
if usage_key.deprecated: # old_mongo usage_key changing this to split usage_key.
if usage_key.deprecated: # old_mongo usage_key changing this to split usage_key.
new_usage_key_string = "block-v1:" + usage_key._to_string()
else: # split usage_key change this to old_mongo usage_key.
else: # split usage_key change this to old_mongo usage_key.
new_usage_key_string = usage_key._to_deprecated_string()
usage_key = BlockUsageLocator.from_string(new_usage_key_string).replace(org=usage_key.org,
run=usage_key.run,
......
......@@ -120,7 +120,7 @@ class TestGetBlocks(SharedModuleStoreTestCase):
org='test_org',
run='test_run',
course='test_course')
update_course_in_cache(self.course.id) # updating the cache as get_blocks get the blocks from this.
update_course_in_cache(self.course.id) # updating the cache as get_blocks get the blocks from this.
course_key = CourseKey.from_string('test_org/test_course/test_run')
old_mongo_usage_key = modulestore().make_course_usage_key(course_key)
......
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