diff --git a/Mods/Notice/Utils.py b/Mods/Notice/Utils.py index 2d036c9..2045cb9 100644 --- a/Mods/Notice/Utils.py +++ b/Mods/Notice/Utils.py @@ -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):