add task
This commit is contained in:
parent
2917ea3ade
commit
6293858b15
|
@ -1,7 +1,7 @@
|
||||||
from background_task import background
|
from background_task import background
|
||||||
from datetime import date, datetime, timedelta
|
from datetime import date, datetime, timedelta
|
||||||
import time
|
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
|
from polls.utils import send_voice_notify, sent_sms_notify
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,7 +19,6 @@ def process_notify_task():
|
||||||
now = datetime.now()
|
now = datetime.now()
|
||||||
profile = n.user.userprofile_set.first()
|
profile = n.user.userprofile_set.first()
|
||||||
if not profile.message_status:
|
if not profile.message_status:
|
||||||
print('message_status = False')
|
|
||||||
continue
|
continue
|
||||||
phone = n.user.username
|
phone = n.user.username
|
||||||
today = now.date()
|
today = now.date()
|
||||||
|
|
Loading…
Reference in New Issue