Skip to content

Commit

Permalink
fix: add dummy branch to v2->v1 key
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhaugh committed Dec 13, 2023
1 parent 8909cb3 commit 04c13ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openedx/core/djangoapps/content_libraries/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def generate_block_key(source_key, dest_parent_key):
"""
if not isinstance(source_key.lib_key, LibraryLocatorV2):
raise ValueError("Input must be an instance of LibraryLocatorV2")
source_key_as_v1_course_key = LibraryLocatorV1(org=source_key.lib_key.org, library=source_key.lib_key.slug)
source_key_as_v1_course_key = LibraryLocatorV1(org=source_key.lib_key.org, library=source_key.lib_key.slug, branch='library')
source_key_usage_id_as_block_key = BlockKey(
type= source_key.block_type,
id=source_key.usage_id,
Expand Down

0 comments on commit 04c13ae

Please sign in to comment.