Continue Flask migration.

This commit is contained in:
yohan 2024-06-02 10:58:07 +02:00
parent 69c791e7ca
commit a7bde80346

View File

@ -221,7 +221,8 @@ while True:
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_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()
#forced_mode = get_forced_mode()
forced_mode = None
if forced_mode is not None and forced_mode in targets:
if target_name != forced_mode:
target_name = forced_mode