From 77b4cdb6bec83446e1ba95e8a32d1d8aeea9aea4 Mon Sep 17 00:00:00 2001 From: PinLin Date: Wed, 30 Aug 2017 00:19:11 +0800 Subject: [PATCH] add json indent --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 1604c2e..0e162cc 100644 --- a/bot.py +++ b/bot.py @@ -165,4 +165,4 @@ while True: 'question': user.question } with open('users.json', 'w') as f: - json.dump(users_backup, f) \ No newline at end of file + json.dump(users_backup, f, indent=' ') \ No newline at end of file