mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-12-06 02:30:30 -08:00
json.dump(ensure_ascii=False)
improve json readability
This commit is contained in:
parent
2a40d3c603
commit
a15dd151ff
5 changed files with 5 additions and 5 deletions
|
|
@ -65,7 +65,7 @@ def save_config_state(name):
|
|||
filename = os.path.join(config_states_dir, f"{timestamp}_{name}.json")
|
||||
print(f"Saving backup of webui/extension state to {filename}.")
|
||||
with open(filename, "w", encoding="utf-8") as f:
|
||||
json.dump(current_config_state, f, indent=4)
|
||||
json.dump(current_config_state, f, indent=4, ensure_ascii=False)
|
||||
config_states.list_config_states()
|
||||
new_value = next(iter(config_states.all_config_states.keys()), "Current")
|
||||
new_choices = ["Current"] + list(config_states.all_config_states.keys())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue