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 3bdb9e6 commit 5508a26
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/api/src/backend/views/Tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,8 @@ def patch(self, request, group_id, pipeline_id, task_id):

print("\n", task, "\n")

print("\n", task.dict(), "\n")
print("\n", dict(task.json()), "\n")

print("\n", task.model_dump(exclude=["uuid", "pipeline"]), "\n")



# Disallow updating the type property
if (task_model.type != task.type):
return BadRequest(f"Updating the type of a task is not allowed. Expected task.type: {task_model.type} - Recieved: {task.type}")
Expand Down

0 comments on commit 5508a26

Please sign in to comment.