[core/output] fix broken output

This commit is contained in:
tobi-wan-kenobi 2022-09-18 16:50:43 +02:00
parent 38d3a6d4c4
commit 1c19250fe5

View file

@ -185,7 +185,7 @@ class i3(object):
cb = getattr(self, what)
data = cb(args) if args else cb()
if "blocks" in data:
sys.stdout.write(json.dumps(data, default=dump_json))
sys.stdout.write(json.dumps(data["blocks"], default=dump_json))
if "suffix" in data:
sys.stdout.write(data["suffix"])
sys.stdout.write("\n")