Skip to content

Commit 3889059

Browse files
committed
do not set highlight on root state (entire submission)
addresses #161
1 parent 5adec72 commit 3889059

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pythonwhat/State.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def __init__(self,
102102
self.student_context = Context(student_context) if student_context is None else student_context
103103
self.solution_context = Context(solution_context) if solution_context is None else solution_context
104104

105-
self.highlight = self.student_tree if highlight is None else highlight
105+
self.highlight = self.student_tree if (not highlight) and self.parent_state else highlight
106106

107107
self.converters = get_manual_converters() # accessed only from root state
108108

0 commit comments

Comments
 (0)