Commit ea18e5c3 by Clinton Blackburn

Merge pull request #6203 from edx/jeskew/fix_pylint_error

Fix assert.
parents 9a309448 2c09c567
...@@ -1486,7 +1486,7 @@ class MongoModuleStore(ModuleStoreDraftAndPublished, ModuleStoreWriteBase, Mongo ...@@ -1486,7 +1486,7 @@ class MongoModuleStore(ModuleStoreDraftAndPublished, ModuleStoreWriteBase, Mongo
elif isinstance(course_assets['assets'], list): elif isinstance(course_assets['assets'], list):
# This record is in the old course assets format. # This record is in the old course assets format.
# Ensure that no data exists before updating the format. # Ensure that no data exists before updating the format.
assert(len(course_assets['assets']), 0) assert(len(course_assets['assets']) == 0)
# Update the format to a dict. # Update the format to a dict.
self.asset_collection.update( self.asset_collection.update(
{'_id': course_assets['_id']}, {'_id': course_assets['_id']},
......
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