Make logs more readable, no more \u7f16\u7801 (#6127)

This commit is contained in:
Guanghua Lu 2024-06-16 10:00:13 +08:00 committed by GitHub
parent fd7c3c5bb0
commit 229d89ccfb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -492,7 +492,7 @@ def save_history(history, unique_id, character, mode):
p.parent.mkdir(parents=True)
with open(p, 'w', encoding='utf-8') as f:
f.write(json.dumps(history, indent=4))
f.write(json.dumps(history, indent=4, ensure_ascii=False))
def rename_history(old_id, new_id, character, mode):