Skip to content
Snippets Groups Projects
Commit cc7f692c authored by Calen Pennington's avatar Calen Pennington
Browse files

Mark xblocks with data-graded and data-has-score

parent a457c7c8
Branches
Tags
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment