diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-04 13:37:15 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-03-04 13:37:15 +0300 |
commit | 3341f08fe90909e89f89f3a43df33db8330067b3 (patch) | |
tree | 792e372bf6a46b21384aefffb92d667aca2b6799 | |
parent | put status refresh interval next to header (diff) | |
download | linux-status-3341f08fe90909e89f89f3a43df33db8330067b3.tar.gz linux-status-3341f08fe90909e89f89f3a43df33db8330067b3.zip |
app.py: pretty print the JSON
-rwxr-xr-x | app.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |