Mr-Help commited on
Commit
39e763d
·
verified ·
1 Parent(s): edaa826

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -160,7 +160,10 @@ async def create_task(request: Request):
160
 
161
  # ➕ Prepare the update payload to add the assignee and duedate to the created task from template
162
  update_payload = {
163
- "assignees": [int(uid) for uid in assignee_ids],
 
 
 
164
  "status": status
165
  }
166
 
 
160
 
161
  # ➕ Prepare the update payload to add the assignee and duedate to the created task from template
162
  update_payload = {
163
+ "assignees": {
164
+ "add": [int(uid) for uid in assignee_ids],
165
+ "rem": [] # optionally remove others if needed
166
+ },
167
  "status": status
168
  }
169