Fix issues with data driven split keyboards (#16457)
This commit is contained in:
parent
e884414e1e
commit
779c7debcf
4 changed files with 32 additions and 27 deletions
|
@ -29,7 +29,7 @@ def process_mapping_rule(kb_info_json, rules_key, info_dict):
|
|||
if key_type in ['array', 'list']:
|
||||
return f'{rules_key} ?= {" ".join(rules_value)}'
|
||||
elif key_type == 'bool':
|
||||
return f'{rules_key} ?= {"on" if rules_value else "off"}'
|
||||
return f'{rules_key} ?= {"yes" if rules_value else "no"}'
|
||||
elif key_type == 'mapping':
|
||||
return '\n'.join([f'{key} ?= {value}' for key, value in rules_value.items()])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue