fix json indentation
This commit is contained in:
parent
0faea277d1
commit
f57f9b1fcd
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue