Update app.py
Browse files
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}")
|