Skip to content

Commit

Permalink
feat: indent json before saving it
Browse files Browse the repository at this point in the history
  • Loading branch information
khodedawsh committed May 28, 2024
1 parent e776b6f commit f125efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marznode/service/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ async def RestartXray(
]
await stream.send_message(InboundsResponse(inbounds=pb2_inbounds))
with open(config.XRAY_CONFIG_PATH, "w") as f:
f.write(message.configuration)
f.write(json.dumps(json.loads(message.configuration), indent=2))

0 comments on commit f125efd

Please sign in to comment.