mirror of
https://git.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-24 16:10:57 +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(
|
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 по Москве')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user