From 25bd86119e24aae12d205b4f5adafa13544c7457 Mon Sep 17 00:00:00 2001
From: Julian Keck <julian.keck9@kit.edu>
Date: Thu, 23 Jan 2025 14:29:04 +0100
Subject: [PATCH] FIXUP

---
 api/patch_request.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/api/patch_request.py b/api/patch_request.py
index c8241f7..b262605 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,
-- 
GitLab