From c8d9c7e18b73aabff6ab9d6c8a9cb15416a90b2b Mon Sep 17 00:00:00 2001 From: tligui_y Date: Wed, 16 Jul 2025 13:23:24 +0200 Subject: [PATCH] Update json_to_tree.py --- json_to_tree.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/json_to_tree.py b/json_to_tree.py index 1a1945eed..c036105ac 100644 --- a/json_to_tree.py +++ b/json_to_tree.py @@ -26,7 +26,7 @@ def build_tree(data, tree): elif isinstance(data, list): for value in data: if isinstance(value, (dict, list)): - branch = tree.add("[bold blue]list[/]") + branch = tree.add(f"[bold magenta]-[/]") build_tree(value, branch) else: tree.add(style_value(value)) @@ -41,9 +41,8 @@ def main(): build_tree(data, root) console.print(root) - with open("ci-reports/markdown/json-tree-view.log", "w") as f: + with open("ci-reports/markdown/json-tree-view.md", "w") as f: f.write(console.export_text(clear=False)) if __name__ == "__main__": - main() - + main() \ No newline at end of file