From 969c00bbd97470158b1c10f45505066dd1136505 Mon Sep 17 00:00:00 2001 From: Nathan Freeman Date: Wed, 29 Nov 2023 13:26:14 -0600 Subject: [PATCH] debug. use model dump for conditions again --- src/api/src/backend/services/TaskService.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/src/backend/services/TaskService.py b/src/api/src/backend/services/TaskService.py index b312a2b5..cd74898c 100644 --- a/src/api/src/backend/services/TaskService.py +++ b/src/api/src/backend/services/TaskService.py @@ -101,7 +101,7 @@ def create(self, pipeline, request): code=getattr(request, "code", None), command=getattr(request, "command", None), context=context, - conditions=getattr(request, "conditions", []).model_dump(), + conditions=[c.model_dump() for c in getattr(request, "conditions", [])], data=getattr(request, "data", None), description=request.description, destination=destination,