Skip to content
Snippets Groups Projects
Commit dcecae4f authored by Matthew Piatetsky's avatar Matthew Piatetsky
Browse files

address comments

parent 21530571
Branches
Tags
No related merge requests found
......@@ -331,15 +331,15 @@ class SequenceModule(SequenceFields, ProctoringFields, XModule):
# Other than the outer function here
return (
block.location.block_type not in ('chapter', 'sequential', 'vertical') and
len(getattr(block, 'children', [])) == 0
not block.has_children
)
def get_children(parent):
# This function is used to get the children of a block in the traversal below
if not hasattr(parent, 'children'):
return []
else:
if parent.has_children:
return parent.get_children()
else:
return []
# If any block inside a timed exam has been gated by content type gating
# then gate the entire sequence.
......
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