add task
This commit is contained in:
parent
2917ea3ade
commit
6293858b15
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue