add json indent

This commit is contained in:
2017-08-30 00:19:11 +08:00
parent a118bd5b30
commit 77b4cdb6be

2
bot.py
View File

@ -165,4 +165,4 @@ while True:
'question': user.question 'question': user.question
} }
with open('users.json', 'w') as f: with open('users.json', 'w') as f:
json.dump(users_backup, f) json.dump(users_backup, f, indent=' ')