Update app.py
Browse files
app.py
CHANGED
|
@@ -233,6 +233,7 @@ async def create_task(request: Request):
|
|
| 233 |
}
|
| 234 |
|
| 235 |
response = requests.get(web_app_url, params=params)
|
|
|
|
| 236 |
if response.ok:
|
| 237 |
phone = response.json().get("phone")
|
| 238 |
if phone and phone != "not-found":
|
|
@@ -254,7 +255,8 @@ async def create_task(request: Request):
|
|
| 254 |
f"📝 *اسم المهمة:* {task_name}\n"
|
| 255 |
f"🔗 *رابط المهمة:* {task_url}"
|
| 256 |
)
|
| 257 |
-
send_whatsapp_notification(chat_id, msg
|
|
|
|
| 258 |
else:
|
| 259 |
logging.warning(f"❌ Couldn't fetch phone number for assignee {assignee_id}")
|
| 260 |
|
|
|
|
| 233 |
}
|
| 234 |
|
| 235 |
response = requests.get(web_app_url, params=params)
|
| 236 |
+
print(f"Assingnee to notify {response.json()}")
|
| 237 |
if response.ok:
|
| 238 |
phone = response.json().get("phone")
|
| 239 |
if phone and phone != "not-found":
|
|
|
|
| 255 |
f"📝 *اسم المهمة:* {task_name}\n"
|
| 256 |
f"🔗 *رابط المهمة:* {task_url}"
|
| 257 |
)
|
| 258 |
+
send_whatsapp_notification(chat_id, msg
|
| 259 |
+
|
| 260 |
else:
|
| 261 |
logging.warning(f"❌ Couldn't fetch phone number for assignee {assignee_id}")
|
| 262 |
|