From 4196d89440b00f9b5dbc277897ad9731f13841cd Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Mon, 18 Dec 2023 22:16:23 +1100 Subject: [PATCH] Pretty print environment info JSON using json.dumps() --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 29a12db..a89e5ba 100644 --- a/app.py +++ b/app.py @@ -111,7 +111,7 @@ def get_http_function_edit_form(): if not http_function: return jsonify({'error': 'Function not found'}), 404 script = http_function['script_content'] - environment_info = json.dumps(http_function['environment_info']) + environment_info = json.dumps(http_function['environment_info'], indent=2) return render_template("dashboard/http_functions/edit.html", name=name, script=script, environment_info=environment_info) @ app.route("/dashboard/http_functions/edit", methods=["POST"])