TypeError: can't compare offset-naive and offset-aware datetimes
All checks were successful
Run tests / Run-Test (push) Successful in 50s

This commit is contained in:
localhost_frssoft 2024-07-29 09:28:18 +03:00
parent b3932f06f0
commit d84d86e2dd

View File

@ -53,10 +53,10 @@ def get_control_mention():
delta = relativedelta( delta = relativedelta(
hour=hour_poll_posting, minute=0, second=0, weekday=TU(1)) 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
if check_stop_thread_scan(stop_thread_scan) == stop_thread_scan: # if check_stop_thread_scan(stop_thread_scan) == stop_thread_scan: # broken because pytz
logger.success("проверка на корректность даты пройдена") # logger.success("проверка на корректность даты пройдена")
else: # else:
logger.warning("проверка на корректность даты не пройдена") # logger.warning("проверка на корректность даты не пройдена")
# stop_thread_scan = check_stop_thread_scan(stop_thread_scan) # stop_thread_scan = check_stop_thread_scan(stop_thread_scan)
movies_accept_time = stop_thread_scan.strftime( movies_accept_time = stop_thread_scan.strftime(
'%H:%M %d.%m.%Y по Москве') '%H:%M %d.%m.%Y по Москве')