From efac73776fb2788d7000e22eb3e8e1ca3d7cff3a Mon Sep 17 00:00:00 2001 From: Rhinemann Date: Mon, 8 May 2023 12:27:39 +0300 Subject: [PATCH] Minor changes. --- module-testing.py | 8 -------- modules/auto-schedule-pro-v2/main.py | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/module-testing.py b/module-testing.py index 0cfc947..b93b5ea 100644 --- a/module-testing.py +++ b/module-testing.py @@ -157,14 +157,6 @@ class ModuleControlUnit: except Exception as e: print(f"[ERROR] module_loader: error while loading module \"{folder}\" ({e})") - -# message queue object to go back to synchronous message processing -# class MessageQueue: -# def __init__(self): -# print("[INFO] Initializing the message queue...") -# self.queue = [] - - # synchronous message processor def queue_processor(): while True: diff --git a/modules/auto-schedule-pro-v2/main.py b/modules/auto-schedule-pro-v2/main.py index f58e437..f552157 100644 --- a/modules/auto-schedule-pro-v2/main.py +++ b/modules/auto-schedule-pro-v2/main.py @@ -24,8 +24,8 @@ module_path = "" def get_human_readable_date(start_datetime, end_datetime, current_day, current_week): human_readable_date = "" - if ((current_day + 2) == int(start_datetime.strftime("%u"))) or ( - (current_day == 6) and (start_datetime.strftime("%u") == "1")): + if ((current_day + 2) == int(start_datetime.strftime("%u"))) or \ + ((current_day == 6) and (start_datetime.strftime("%u") == "1")): human_readable_date += "завтра " elif current_week != int(start_datetime.strftime("%W")) % 2: human_readable_date += f"{WEEKDAYS_GENITIVE_NEXT[int(start_datetime.strftime('%u')) - 1]} "