From 0c1adb75fec0c187e9484aff4563ed8ae9000a43 Mon Sep 17 00:00:00 2001 From: tooyang Date: Wed, 4 Sep 2024 11:24:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20json=E5=86=85=E5=AE=B9=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E4=BC=98=E5=8C=96=EF=BC=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E7=BC=A9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/xhs/xhs_store_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/xhs/xhs_store_impl.py b/store/xhs/xhs_store_impl.py index 8450de2..2dc8838 100644 --- a/store/xhs/xhs_store_impl.py +++ b/store/xhs/xhs_store_impl.py @@ -205,7 +205,7 @@ class XhsJsonStoreImplement(AbstractStore): save_data.append(save_item) async with aiofiles.open(save_file_name, 'w', encoding='utf-8') as file: - await file.write(json.dumps(save_data, ensure_ascii=False)) + await file.write(json.dumps(save_data, ensure_ascii=False, indent=4)) if config.ENABLE_GET_COMMENTS and config.ENABLE_GET_WORDCLOUD: try: