diff --git a/update_configspec.py b/update_configspec.py new file mode 100644 index 0000000..3400119 --- /dev/null +++ b/update_configspec.py @@ -0,0 +1,9 @@ +import config +from Server.copter_table_models import CopterDataModel + +cfg_server = config.ConfigObj('SERVER/config/spec/configspec_server.ini') +default = {key: 'boolean(default=True)' for key in CopterDataModel.columns} +cfg_server['TABLE']['PRESETS']['DEFAULT'] = default + +cfg_server.write() +print('Server configspec updated')