Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Jul 11, 2024
1 parent 5508a26 commit 89a7f59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/src/backend/views/Tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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:
Expand Down

0 comments on commit 89a7f59

Please sign in to comment.