We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5adec72 commit 3889059Copy full SHA for 3889059
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