Mr-Help commited on
Commit
bbec878
·
verified ·
1 Parent(s): 7fe898c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -157,7 +157,7 @@ async def create_task(request: Request):
157
  if response.ok:
158
  new_task = response.json()
159
  new_task_id = new_task.get("id")
160
- space_id = new_task.get("space", {}).get("id")
161
 
162
  print("✅ Task created from template:", new_task_id)
163
  print(f"Space id is {space_id}")
 
157
  if response.ok:
158
  new_task = response.json()
159
  new_task_id = new_task.get("id")
160
+ space_id = new_task.get("task", {}).get("space", {}).get("id")
161
 
162
  print("✅ Task created from template:", new_task_id)
163
  print(f"Space id is {space_id}")