Merge pull request #21637 from edx/BOM-446

BOM-446
This commit is contained in:
Aarif
2019-09-13 14:40:36 +05:00
committed by GitHub
6 changed files with 6 additions and 6 deletions

View File

@@ -2597,7 +2597,7 @@ class SplitMongoModuleStore(SplitBulkWriteMixin, ModuleStoreWriteBase):
block_key.id,
new_parent_block_key.id,
)
new_block_id = hashlib.sha1(unique_data).hexdigest()[:20]
new_block_id = hashlib.sha1(unique_data.encode('utf-8')).hexdigest()[:20]
new_block_key = BlockKey(block_key.type, new_block_id)
# Now clone block_key to new_block_key: