From 04c13aed19dc99e29fdd02526a6e9a09e829e61d Mon Sep 17 00:00:00 2001 From: connorhaugh Date: Wed, 13 Dec 2023 14:54:53 +0000 Subject: [PATCH] fix: add dummy branch to v2->v1 key --- openedx/core/djangoapps/content_libraries/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/content_libraries/tasks.py b/openedx/core/djangoapps/content_libraries/tasks.py index ca44e0bae70..9e338afc617 100644 --- a/openedx/core/djangoapps/content_libraries/tasks.py +++ b/openedx/core/djangoapps/content_libraries/tasks.py @@ -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,