bug
This commit is contained in:
parent
2ba957c302
commit
edf48c0825
|
@ -140,7 +140,7 @@ class DailyNotice:
|
|||
while True:
|
||||
time.sleep(15)
|
||||
now = datetime.now()
|
||||
if is_workday() and now.hour == 15 and (15 <= now.minute < 15 + 3) and not sended:
|
||||
if is_workday() and now.hour == 15 and (35<= now.minute < 35 + 3) and not sended:
|
||||
sended = True
|
||||
try:
|
||||
user_list = get_user_not_fill_daily()
|
||||
|
@ -157,6 +157,7 @@ class DailyNotice:
|
|||
def email_send_thread(self, args_list, sem=5):
|
||||
with ThreadPoolExecutor(max_workers=sem) as executor:
|
||||
for args in args_list:
|
||||
time.sleep(1)
|
||||
executor.submit(self.send_email, *args)
|
||||
|
||||
def init(self):
|
||||
|
|
Loading…
Reference in New Issue