Pretty print environment info JSON using json.dumps()
This commit is contained in:
2
app.py
2
app.py
@@ -111,7 +111,7 @@ def get_http_function_edit_form():
|
|||||||
if not http_function:
|
if not http_function:
|
||||||
return jsonify({'error': 'Function not found'}), 404
|
return jsonify({'error': 'Function not found'}), 404
|
||||||
script = http_function['script_content']
|
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)
|
return render_template("dashboard/http_functions/edit.html", name=name, script=script, environment_info=environment_info)
|
||||||
|
|
||||||
@ app.route("/dashboard/http_functions/edit", methods=["POST"])
|
@ app.route("/dashboard/http_functions/edit", methods=["POST"])
|
||||||
|
|||||||
Reference in New Issue
Block a user