1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

change team_config to object instead of list

This commit is contained in:
Kelly Brazil
2025-05-05 11:34:30 -07:00
parent ba0fc5dad9
commit 4c2775970d

View File

@ -325,7 +325,7 @@ def _connection_show_x_parse(data: str) -> List[Dict]:
in_team_config = True
_, value = line.split(':', maxsplit=1)
team_config_value.append(value.strip())
item['team_config'] = []
item['team_config'] = {}
continue
if not line.startswith('team.') and in_team_config:
@ -335,6 +335,7 @@ def _connection_show_x_parse(data: str) -> List[Dict]:
in_team_config = False
if team_config_value:
# team.config value should always be JSON
item['team_config'] = json.loads(''.join(team_config_value))
team_config_value = []