removed parser at 00:00 and datetime inject directly

This commit is contained in:
localhost_frssoft 2024-07-11 12:15:58 +03:00
parent 07b469ccfc
commit 7a78aa6244

View file

@ -73,8 +73,7 @@ def get_control_mention():
break
if now_hour == 0:
logger.warning(f'Автоматический триггер в полночи сработал')
st_date = time_now.strftime("%d.%m.%YT%H:%M:%SZ")
thread_created_at = dateutilparse(st_date)
thread_created_at = time_now
delta = relativedelta(hour=hour_poll_posting, minute=0, second=0, weekday=TU(1))
stop_thread_scan = thread_created_at + delta