aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-03-04 13:37:15 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-03-04 13:37:15 +0300
commit3341f08fe90909e89f89f3a43df33db8330067b3 (patch)
tree792e372bf6a46b21384aefffb92d667aca2b6799
parentput status refresh interval next to header (diff)
downloadlinux-status-3341f08fe90909e89f89f3a43df33db8330067b3.tar.gz
linux-status-3341f08fe90909e89f89f3a43df33db8330067b3.zip
app.py: pretty print the JSON
Diffstat (limited to '')
-rwxr-xr-xapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.py b/app.py
index 8d76170..b4d2967 100755
--- a/app.py
+++ b/app.py
@@ -78,7 +78,7 @@ class Response:
@staticmethod
def dump_json(data):
- return json.dumps(data, ensure_ascii=False)
+ return json.dumps(data, ensure_ascii=False, indent=4)
def body(self):
return self.dump_json(self.data)