From 616b9c366cac3236765f062caa24915f8d881763 Mon Sep 17 00:00:00 2001 From: blank X Date: Thu, 14 Jan 2021 12:15:07 +0700 Subject: [PATCH] Pretty-print json dump --- autoytarchive/workers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoytarchive/workers.py b/autoytarchive/workers.py index 0369ccc..40f3fc0 100644 --- a/autoytarchive/workers.py +++ b/autoytarchive/workers.py @@ -126,7 +126,7 @@ async def _video_worker(): if is_late: text += ' (is late)' text += f': {video_json["title"]}' - with BytesIO(json.dumps(video_json).encode()) as file: + with BytesIO(json.dumps(video_json, indent=4).encode()) as file: file.name = video_json['id'] + '.json' file.seek(0) await client.send_file(config['config']['storage_chat_id'], file, caption=text, parse_mode=None)