Pretty-print json dump

master
blank X 2 years ago
parent 735f77724e
commit 616b9c366c
  1. 2
      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)

Loading…
Cancel
Save