Commit 2c09c567 by John Eskew

Fix assert.

Assert mistakenly had comma instead of double-equal - now correct.
parent 9a309448
...@@ -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