Continue Flask migration.

This commit is contained in:
yohan 2024-06-02 10:43:58 +02:00
parent adbc3b754b
commit fd2266aaf5

View File

@ -219,7 +219,7 @@ while True:
current_date = datetime.datetime.now() current_date = datetime.datetime.now()
today_awake_time = current_date.replace(hour=int(awake_hour.split(':')[0]), minute=int(awake_hour.split(':')[1]), second=0, microsecond=0) today_awake_time = current_date.replace(hour=int(awake_hour.split(':')[0]), minute=int(awake_hour.split(':')[1]), second=0, microsecond=0)
today_sleep_time = current_date.replace(hour=int(sleep_hour.split(':')[0]), minute=int(sleep_hour.split(':')[1]), second=0, microsecond=0) today_sleep_time = current_date.replace(hour=int(sleep_hour.split(':')[0]), minute=int(sleep_hour.split(':')[1]), second=0, microsecond=0)
forced_mode = get_forced_mode(cursor) forced_mode = get_forced_mode()
if forced_mode is not None and forced_mode in targets: if forced_mode is not None and forced_mode in targets:
if target_name != forced_mode: if target_name != forced_mode:
target_name = forced_mode target_name = forced_mode