]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Trader.git/commitdiff
Pretty-print the json output
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 4 Mar 2018 18:19:45 +0000 (19:19 +0100)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Sun, 4 Mar 2018 18:19:45 +0000 (19:19 +0100)
store.py

index d9038b7fa32d9adb46d5a57acc5d312268bc6a77..d25dd35d1b06efe8f73b812c90cb1d51a66448cc 100644 (file)
--- a/store.py
+++ b/store.py
@@ -27,7 +27,7 @@ class ReportStore:
             if isinstance(obj, (datetime, date)):
                 return obj.isoformat()
             return str(obj)
-        return json.dumps(self.logs, default=default_json_serial)
+        return json.dumps(self.logs, default=default_json_serial, indent="  ")
 
     def set_verbose(self, verbose_print):
         self.verbose_print = verbose_print