Skip to content

Commit

Permalink
chore: yaml dump do not sort keys
Browse files Browse the repository at this point in the history
  • Loading branch information
yangbodong22011 committed Dec 16, 2024
1 parent 42411a4 commit 5e877bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit 5e877bc

Please sign in to comment.