Mr-Help commited on
Commit
161b9c9
·
verified ·
1 Parent(s): a30d6f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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": "201040516950@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": "201040516950@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
 
 
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