mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-17 00:24:25 -04:00
More general parsing
This commit is contained in:
parent
7dcb34559b
commit
ea8f481b01
10 changed files with 165 additions and 128 deletions
|
@ -48,7 +48,7 @@ def pretty_print(data, key="", intend=0, is_list=False, whitespace=" "):
|
|||
|
||||
|
||||
def get_parameter(command, parameter):
|
||||
if programs := command.programs:
|
||||
if programs := command.categories:
|
||||
for program in programs.values():
|
||||
if data := program.settings.get(parameter):
|
||||
return data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue