Update app.py
Browse files
app.py
CHANGED
|
@@ -248,7 +248,7 @@ async def create_task(request: Request):
|
|
| 248 |
clickup_data = clickup_response.json()
|
| 249 |
print(f"ClickUp Response: {clickup_response.status_code}, {clickup_data}")
|
| 250 |
|
| 251 |
-
|
| 252 |
# After task creation and response
|
| 253 |
new_task_id = clickup_data.get("id")
|
| 254 |
space_id = clickup_data.get("space", {}).get("id")
|
|
@@ -292,7 +292,8 @@ async def create_task(request: Request):
|
|
| 292 |
|
| 293 |
else:
|
| 294 |
return {"error": f"Unsupported task type: {task_type}"}
|
| 295 |
-
|
|
|
|
| 296 |
|
| 297 |
# Function to get task name by task ID
|
| 298 |
def get_task_name(task_id):
|
|
|
|
| 248 |
clickup_data = clickup_response.json()
|
| 249 |
print(f"ClickUp Response: {clickup_response.status_code}, {clickup_data}")
|
| 250 |
|
| 251 |
+
|
| 252 |
# After task creation and response
|
| 253 |
new_task_id = clickup_data.get("id")
|
| 254 |
space_id = clickup_data.get("space", {}).get("id")
|
|
|
|
| 292 |
|
| 293 |
else:
|
| 294 |
return {"error": f"Unsupported task type: {task_type}"}
|
| 295 |
+
|
| 296 |
+
return {"status": "Standard task created", "clickup": clickup_data}
|
| 297 |
|
| 298 |
# Function to get task name by task ID
|
| 299 |
def get_task_name(task_id):
|