From f57f9b1fcdbc7c833654ce8f81701adcafccdf66 Mon Sep 17 00:00:00 2001 From: rlx Date: Sun, 17 Jan 2016 14:30:11 +0530 Subject: [PATCH] fix json indentation --- oml/user/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oml/user/models.py b/oml/user/models.py index 6585045..cd9d766 100644 --- a/oml/user/models.py +++ b/oml/user/models.py @@ -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'