From bc5898b86c07d36983da5cc8572e8edf641e9b8e Mon Sep 17 00:00:00 2001 From: baoliang Date: Sat, 30 Jan 2021 21:12:13 +0800 Subject: [PATCH] add message --- polls/views/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polls/views/task.py b/polls/views/task.py index 8398ec6..ac19416 100644 --- a/polls/views/task.py +++ b/polls/views/task.py @@ -72,7 +72,7 @@ def create_task(request): if profile and profile.status == 1: content = '%s在群组“%s”发布了任务,请查收消息' % (profile, g.name) Notice.create_normal_notice(u.user_id, content, group) - send_tnps([u.username], content) + # send_tnps([u.username], content) return JsonResponse({'status': 'success'})