aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-04 19:19:45 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-04 19:19:45 +0100
commitf861492d29f8f646410f7b24f68e0bf6d877ecee (patch)
tree27a0190a1dee1f97c5cea2cf72a8aa51d811de33
parent66f1aed55a17d65e0b5993c59688769dcc2b7b58 (diff)
downloadTrader-f861492d29f8f646410f7b24f68e0bf6d877ecee.tar.gz
Trader-f861492d29f8f646410f7b24f68e0bf6d877ecee.tar.zst
Trader-f861492d29f8f646410f7b24f68e0bf6d877ecee.zip
Pretty-print the json output
-rw-r--r--store.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/store.py b/store.py
index d9038b7..d25dd35 100644
--- a/store.py
+++ b/store.py
@@ -27,7 +27,7 @@ class ReportStore:
27 if isinstance(obj, (datetime, date)): 27 if isinstance(obj, (datetime, date)):
28 return obj.isoformat() 28 return obj.isoformat()
29 return str(obj) 29 return str(obj)
30 return json.dumps(self.logs, default=default_json_serial) 30 return json.dumps(self.logs, default=default_json_serial, indent=" ")
31 31
32 def set_verbose(self, verbose_print): 32 def set_verbose(self, verbose_print):
33 self.verbose_print = verbose_print 33 self.verbose_print = verbose_print