Skip to content
Snippets Groups Projects
Verified Commit d08875e3 authored by !! Julian Keck (old Account; do not use) !!'s avatar !! Julian Keck (old Account; do not use) !! :ghost:
Browse files

UPD: pretty-print json in patch-request

parent 25bd8611
No related branches found
No related tags found
No related merge requests found
Pipeline #399611 passed
......@@ -354,7 +354,7 @@ def send_patch_request(actions: list[PatchRequestAction], mgr: Mgr, receiver=set
raw_data = []
for action in actions:
raw_data.append(json.loads(action.model_dump_json()))
raw_action_json = json.dumps(raw_data)
raw_action_json = json.dumps(raw_data, indent=2)
body = render_jinja_template(path, TEMPLATE,
actions=actions,
......
......@@ -91,9 +91,9 @@
<p>Have a nice day!</p>
<br><br>
Raw request
Raw request:
<pre>
{{ raw_action_json | default('[]') }}
{{ raw_action_json | default('[]') }}
</pre>
</body>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment