fix json indentation

This commit is contained in:
rlx 2016-01-17 14:30:11 +05:30
parent 0faea277d1
commit f57f9b1fcd

View file

@ -354,7 +354,7 @@ class List(db.Model):
break
items.append(j)
with open(path, 'w') as f:
json.dump(items, f, indent=1, default=_to_json, ensure_ascii=False, sort_keys=True)
json.dump(items, f, indent=4, default=_to_json, ensure_ascii=False, sort_keys=True)
class Metadata(db.Model):
__tablename__ = 'user_metadata'