From 8b50351afd7a7a2fc48b26b9f2fe22c26eca3acd Mon Sep 17 00:00:00 2001 From: QSummerY <51444798+QSummerY@users.noreply.github.com> Date: Sat, 9 May 2026 12:27:17 +0800 Subject: [PATCH] fix notify pydantic model_attributes_type --- helpdesk/libs/notification.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helpdesk/libs/notification.py b/helpdesk/libs/notification.py index cb75c1d..006ffb9 100644 --- a/helpdesk/libs/notification.py +++ b/helpdesk/libs/notification.py @@ -211,8 +211,9 @@ async def send(self): return message = self.render() r = requests.post( - WEBHOOK_EVENT_URL, data=message.model_dump_json().encode("utf-8") + WEBHOOK_EVENT_URL, json=message.model_dump(mode="json") ) + print(r.status_code, r.text) if r.status_code == 200: return else: