From ae7926f0a66f9b01ae15361eaf7017dd79f607b1 Mon Sep 17 00:00:00 2001 From: Jillian Vogel Date: Fri, 6 Sep 2024 14:08:18 +0930 Subject: [PATCH] docs: minor comment update Collection.key is stored here, not ID --- openedx/core/djangoapps/content/search/documents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/content/search/documents.py b/openedx/core/djangoapps/content/search/documents.py index c92776e12a4b..27383260115e 100644 --- a/openedx/core/djangoapps/content/search/documents.py +++ b/openedx/core/djangoapps/content/search/documents.py @@ -171,7 +171,7 @@ def _tags_for_content_object(object_id: UsageKey | LearningContextKey) -> dict: and in Collections 3 and 4, this would return: { "tags": { - "collections": [3, 4], + "collections": ["Col_key1", "Col_key2"], "taxonomy": ["Location", "Difficulty"], "level0": ["Location > North America", "Difficulty > Hard"], "level1": ["Location > North America > Canada"],