[WIP] do not show given column
This commit is contained in:
11
devices.py
11
devices.py
@ -315,11 +315,14 @@ class FrappyConfig(Device):
|
||||
if show_server_state:
|
||||
givencfgs, remarks = info
|
||||
frappycfgs, seacfgs = state
|
||||
rows = [['', giventitle, 'frappy', 'sea', '']]
|
||||
# rows = [['', giventitle, 'frappy', 'sea', '']]
|
||||
rows = [['server', 'frappy', 'sea', '']]
|
||||
for key, remark in remarks.items():
|
||||
rows.append([key if key in ('main', 'stick') else 'addon',
|
||||
givencfgs.get(key, ''), frappycfgs.get(key, ''),
|
||||
seacfgs.get(key, ''), remark])
|
||||
rows.append([key if key in ('main', 'stick') else 'addons',
|
||||
frappycfgs.get(key, ''), seacfgs.get(key, ''), remark])
|
||||
# rows.append([key if key in ('main', 'stick') else 'addon',
|
||||
# givencfgs.get(key, ''), frappycfgs.get(key, ''),
|
||||
# seacfgs.get(key, ''), remark])
|
||||
wid = [max(len(v) for v in column) for column in zip(*rows)]
|
||||
# insert title underlines
|
||||
rows.insert(1, [''] + ['-' * w for w in wid[1:-1]] + [''])
|
||||
|
Reference in New Issue
Block a user