This commit is contained in:
baoliang 2021-03-14 15:27:44 +08:00
parent 2917ea3ade
commit 6293858b15
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,7 @@
from background_task import background
from datetime import date, datetime, timedelta
import time
from polls.models import Notice, SMSNotifyRecord, VoiceNotifyRecord
from polls.models import Notice, SMSNotifyRecord, VoiceNotifyRecord, MessageIndicator
from polls.utils import send_voice_notify, sent_sms_notify
@ -19,7 +19,6 @@ def process_notify_task():
now = datetime.now()
profile = n.user.userprofile_set.first()
if not profile.message_status:
print('message_status = False')
continue
phone = n.user.username
today = now.date()