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: