chore: yaml dump do not sort keys

This commit is contained in:
bodong.ybd 2024-12-16 17:28:53 +08:00
parent 42411a4135
commit 5e877bc05f
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ def update_config():
logging.info(f"Writing updated config data to {config_file_path}")
with open(config_file_path, 'w') as config_file:
yaml.dump(config_data, config_file, default_flow_style=False)
yaml.dump(config_data, config_file, sort_keys=False, default_flow_style=False)
logging.info("Config file updated successfully.")