From cc7f692c09fb9c8f917e2c034f97279f346bb3c2 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Fri, 14 Sep 2018 12:16:55 -0400 Subject: [PATCH] Mark xblocks with data-graded and data-has-score --- openedx/core/lib/xblock_utils/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openedx/core/lib/xblock_utils/__init__.py b/openedx/core/lib/xblock_utils/__init__.py index 85955e139e..113dd1f7cb 100644 --- a/openedx/core/lib/xblock_utils/__init__.py +++ b/openedx/core/lib/xblock_utils/__init__.py @@ -130,6 +130,8 @@ def wrap_xblock( data['block-type'] = block.scope_ids.block_type data['usage-id'] = usage_id_serializer(block.scope_ids.usage_id) data['request-token'] = request_token + data['graded'] = getattr(block, 'graded', False) + data['has-score'] = getattr(block, 'has_score', False) if block.name: data['name'] = block.name