From 7a78aa6244e0a0f92cb71959d0c3f0b7f59258fc Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Thu, 11 Jul 2024 12:15:58 +0300 Subject: [PATCH] removed parser at 00:00 and datetime inject directly --- src/listener_mention.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/listener_mention.py b/src/listener_mention.py index ae5c83e..2414248 100644 --- a/src/listener_mention.py +++ b/src/listener_mention.py @@ -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