Merge pull request #558 from geeksville/pr-fixjson

Pretty indent --info JSON output (see below for details)
This commit is contained in:
Ian McEwen
2024-04-28 21:40:43 -07:00
committed by GitHub
3 changed files with 8 additions and 6 deletions

View File

@@ -64,11 +64,11 @@ class Node:
"""Show human readable description of our node"""
prefs = ""
if self.localConfig:
prefs = message_to_json(self.localConfig)
prefs = message_to_json(self.localConfig, multiline=True)
print(f"Preferences: {prefs}\n")
prefs = ""
if self.moduleConfig:
prefs = message_to_json(self.moduleConfig)
prefs = message_to_json(self.moduleConfig, multiline=True)
print(f"Module preferences: {prefs}\n")
self.showChannels()