diff --git a/api/patch_request.py b/api/patch_request.py index c8241f7038526727fa787d4a1341bbf9107c7908..b26260545391743cca1fe94adde400f07f0e586b 100644 --- a/api/patch_request.py +++ b/api/patch_request.py @@ -351,7 +351,10 @@ def send_patch_request(actions: list[PatchRequestAction], mgr: Mgr, receiver=set path = pathlib.Path(__file__).parent.parent.resolve() TEMPLATE = 'templates/patch_request_template.j2' - raw_action_json = json.dumps(actions) + raw_data = [] + for action in actions: + raw_data.append(json.loads(action.model_dump_json())) + raw_action_json = json.dumps(raw_data) body = render_jinja_template(path, TEMPLATE, actions=actions,