Update app.py
Browse files
app.py
CHANGED
|
@@ -64,14 +64,14 @@ def create_task(task: TaskData):
|
|
| 64 |
task_link = f"https://app.clickup.com/t/{task_id}"
|
| 65 |
|
| 66 |
whatsapp_payload = {
|
| 67 |
-
"chatId": "
|
| 68 |
"message": f"🚀 *New Task Assigned!*\n\n📌 *Task:* {task.task_name}\n📅 *Due Date:* {task.due_date}\n👤 *Assigned To:* {', '.join(map(str, task.assignees))}\n📝 *Description:* {description}\n\n🔗 *View Task:* {task_link}\n\nLet's get this done! ✅"
|
| 69 |
}
|
| 70 |
else:
|
| 71 |
# If ClickUp API fails, send an error message on WhatsApp mentioning the task name
|
| 72 |
error_message = response_data.get("err", "Unknown error")
|
| 73 |
whatsapp_payload = {
|
| 74 |
-
"chatId": "
|
| 75 |
"message": f"⚠️ *Task Creation Failed!*\n\n📌 *Task:* {task.task_name}\n❌ *Error:* {error_message}\n\nPlease check the request and try again."
|
| 76 |
}
|
| 77 |
|
|
|
|
| 64 |
task_link = f"https://app.clickup.com/t/{task_id}"
|
| 65 |
|
| 66 |
whatsapp_payload = {
|
| 67 |
+
"chatId": "201092003112@c.us",
|
| 68 |
"message": f"🚀 *New Task Assigned!*\n\n📌 *Task:* {task.task_name}\n📅 *Due Date:* {task.due_date}\n👤 *Assigned To:* {', '.join(map(str, task.assignees))}\n📝 *Description:* {description}\n\n🔗 *View Task:* {task_link}\n\nLet's get this done! ✅"
|
| 69 |
}
|
| 70 |
else:
|
| 71 |
# If ClickUp API fails, send an error message on WhatsApp mentioning the task name
|
| 72 |
error_message = response_data.get("err", "Unknown error")
|
| 73 |
whatsapp_payload = {
|
| 74 |
+
"chatId": "201092003112@c.us",
|
| 75 |
"message": f"⚠️ *Task Creation Failed!*\n\n📌 *Task:* {task.task_name}\n❌ *Error:* {error_message}\n\nPlease check the request and try again."
|
| 76 |
}
|
| 77 |
|