From 3b7f346c0925b461231ef443ec9e24bf65c11409 Mon Sep 17 00:00:00 2001 From: baoliang Date: Wed, 18 Nov 2020 16:32:23 +0800 Subject: [PATCH] add message --- polls/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polls/tasks.py b/polls/tasks.py index 76b11cc..022cdac 100644 --- a/polls/tasks.py +++ b/polls/tasks.py @@ -24,6 +24,6 @@ def process_notify_task(): if hour < 8 or hour > 20: return print('============', phone, n.type) - SMSNotifyRecord.objects.create(phone=phone) + SMSNotifyRecord.objects.create(phone=phone, notice_id=n.id) sent_sms_notify(phone, n.type) print('end task', time.process_time() - start)