We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9245237 + 3889059 commit 9c53e2bCopy full SHA for 9c53e2b
1 file changed
pythonwhat/State.py
@@ -102,7 +102,7 @@ def __init__(self,
102
self.student_context = Context(student_context) if student_context is None else student_context
103
self.solution_context = Context(solution_context) if solution_context is None else solution_context
104
105
- self.highlight = self.student_tree if highlight is None else highlight
+ self.highlight = self.student_tree if (not highlight) and self.parent_state else highlight
106
107
self.converters = get_manual_converters() # accessed only from root state
108
0 commit comments