mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-26 23:19:33 +00:00
15 lines
453 B
Python
15 lines
453 B
Python
import config
|
|
from Server.copter_table_models import CopterDataModel
|
|
|
|
cfg_server = config.ConfigObj('SERVER/config/spec/configspec_server.ini', list_values=False)
|
|
widths = {"copter_id": 150}
|
|
default_width = 100
|
|
|
|
default = {key: f"preset_param(default=list(True, {widths.get(key, default_width)}))"
|
|
for key in CopterDataModel.columns}
|
|
|
|
cfg_server['TABLE']['PRESETS']['DEFAULT'] = default
|
|
|
|
cfg_server.write()
|
|
print('Server configspec updated')
|