diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-04 19:19:45 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-04 19:19:45 +0100 |
commit | f861492d29f8f646410f7b24f68e0bf6d877ecee (patch) | |
tree | 27a0190a1dee1f97c5cea2cf72a8aa51d811de33 | |
parent | 66f1aed55a17d65e0b5993c59688769dcc2b7b58 (diff) | |
download | Trader-f861492d29f8f646410f7b24f68e0bf6d877ecee.tar.gz Trader-f861492d29f8f646410f7b24f68e0bf6d877ecee.tar.zst Trader-f861492d29f8f646410f7b24f68e0bf6d877ecee.zip |
Pretty-print the json output
-rw-r--r-- | store.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |