From 535087fae14231882d1f5f4335ef1b0a9ea41e0b Mon Sep 17 00:00:00 2001 From: dymik739 Date: Mon, 7 Aug 2023 22:58:32 +0300 Subject: [PATCH] =?UTF-8?q?auto-schedule-pro-v2:=20temporary=20change=20re?= =?UTF-8?q?sponce=20to=20!=D0=BF=D0=B0=D1=80=D0=B0=20(holidays=20exclusive?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/auto-schedule-pro-v2/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/auto-schedule-pro-v2/main.py b/modules/auto-schedule-pro-v2/main.py index f552157..81e36d6 100644 --- a/modules/auto-schedule-pro-v2/main.py +++ b/modules/auto-schedule-pro-v2/main.py @@ -144,6 +144,7 @@ def process(message, path): reference_time = int(current_time.strftime("%s")) - current_seconds if base_command == "!пара": + ''' upcoming_lessons = [timestamp for timestamp in schedule if timestamp > current_seconds - 5400] if len(upcoming_lessons) > 0: @@ -153,6 +154,9 @@ def process(message, path): return "Актуальна пара: " + get_lesson_description(schedule, reference_time, closest_lesson_time, current_day, current_week) + ''' + + return "Ви маєте законне право відпочити, пари почнуться не скоро" elif base_command == "!пари": base_day = current_week * 7 + current_day