From 89a7f5973c01a03255c38fd52260a3b9d901bcde Mon Sep 17 00:00:00 2001 From: Nathan Freeman Date: Thu, 11 Jul 2024 16:16:56 -0500 Subject: [PATCH] debug --- src/api/src/backend/views/Tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/src/backend/views/Tasks.py b/src/api/src/backend/views/Tasks.py index b8fbd032..5f6dbfd4 100644 --- a/src/api/src/backend/views/Tasks.py +++ b/src/api/src/backend/views/Tasks.py @@ -138,7 +138,7 @@ def patch(self, request, group_id, pipeline_id, task_id): print("\n", task, "\n") - print("\n", dict(task.json()), "\n") + print("\n", json.loads(task.json()), "\n") # Disallow updating the type property if (task_model.type != task.type): @@ -149,7 +149,7 @@ def patch(self, request, group_id, pipeline_id, task_id): Task.objects.filter( pipeline_id=pipeline_id, id=task_id - ).update(**task.model_dump(exclude=["uuid", "pipeline"])) + ).update(**json.loads(task.json)) return ModelResponse(Task.objects.filter(id=task.id, pipeline_id=pipeline_id).first()) except (DatabaseError, OperationalError, IntegrityError) as e: