mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-09 23:03:01 +00:00
removed parser at 00:00 and datetime inject directly
This commit is contained in:
parent
07b469ccfc
commit
7a78aa6244
@ -73,8 +73,7 @@ def get_control_mention():
|
|||||||
break
|
break
|
||||||
if now_hour == 0:
|
if now_hour == 0:
|
||||||
logger.warning(f'Автоматический триггер в полночи сработал')
|
logger.warning(f'Автоматический триггер в полночи сработал')
|
||||||
st_date = time_now.strftime("%d.%m.%YT%H:%M:%SZ")
|
thread_created_at = time_now
|
||||||
thread_created_at = dateutilparse(st_date)
|
|
||||||
|
|
||||||
delta = relativedelta(hour=hour_poll_posting, minute=0, second=0, weekday=TU(1))
|
delta = relativedelta(hour=hour_poll_posting, minute=0, second=0, weekday=TU(1))
|
||||||
stop_thread_scan = thread_created_at + delta
|
stop_thread_scan = thread_created_at + delta
|
||||||
|
Loading…
Reference in New Issue
Block a user