Skip to content

Commit

Permalink
STEAPP-879: edited the code for readable
Browse files Browse the repository at this point in the history
  • Loading branch information
SokolovJek authored Jan 29, 2024
1 parent edfff09 commit 18bae6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions klippy/extras/wizard/wizard_step_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def get_value(self, node, key):
if isinstance(value, int):
return value
elif isinstance(node, dict):
if 'key' in node:
if key in node.values():
return node['value']
if 'children' in node:
elif 'children' in node:
for child in node['children']:
value = self.get_value(child, key)
if isinstance(value, int):
Expand Down

0 comments on commit 18bae6e

Please sign in to comment.