mirror of
https://git.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-24 14:30:58 +01:00
TypeError: can't compare offset-naive and offset-aware datetimes
All checks were successful
Run tests / Run-Test (push) Successful in 50s
All checks were successful
Run tests / Run-Test (push) Successful in 50s
This commit is contained in:
parent
b3932f06f0
commit
d84d86e2dd
|
@ -53,10 +53,10 @@ def get_control_mention():
|
|||
delta = relativedelta(
|
||||
hour=hour_poll_posting, minute=0, second=0, weekday=TU(1))
|
||||
stop_thread_scan = thread_created_at + delta
|
||||
if check_stop_thread_scan(stop_thread_scan) == stop_thread_scan:
|
||||
logger.success("проверка на корректность даты пройдена")
|
||||
else:
|
||||
logger.warning("проверка на корректность даты не пройдена")
|
||||
# if check_stop_thread_scan(stop_thread_scan) == stop_thread_scan: # broken because pytz
|
||||
# logger.success("проверка на корректность даты пройдена")
|
||||
# else:
|
||||
# logger.warning("проверка на корректность даты не пройдена")
|
||||
# stop_thread_scan = check_stop_thread_scan(stop_thread_scan)
|
||||
movies_accept_time = stop_thread_scan.strftime(
|
||||
'%H:%M %d.%m.%Y по Москве')
|
||||
|
|
Loading…
Reference in New Issue
Block a user