This commit is contained in:
Rhinemann 2023-05-08 10:23:06 +03:00
parent 2206bf6319
commit 8debb0b3d5
1 changed files with 3 additions and 4 deletions

View File

@ -111,8 +111,8 @@ def get_lesson_description(schedule, reference_time, lesson_time, current_day, c
lesson_start_datetime = datetime.fromtimestamp(reference_time + lesson_time) lesson_start_datetime = datetime.fromtimestamp(reference_time + lesson_time)
lesson_end_datetime = datetime.fromtimestamp(reference_time + lesson_time + 5400) lesson_end_datetime = datetime.fromtimestamp(reference_time + lesson_time + 5400)
return generate_lesson_description(lesson_record, lesson_start_datetime, lesson_end_datetime, return generate_lesson_description(lesson_record, lesson_start_datetime, lesson_end_datetime, current_day,
current_day, current_week, overrides=overrides) current_week, overrides=overrides)
def process(message, path): def process(message, path):
@ -151,8 +151,7 @@ def process(message, path):
else: else:
closest_lesson_time = min(schedule) closest_lesson_time = min(schedule)
return "Актуальна пара: " + get_lesson_description(schedule, reference_time, return "Актуальна пара: " + get_lesson_description(schedule, reference_time, closest_lesson_time, current_day,
closest_lesson_time, current_day,
current_week) current_week)
elif base_command == "!пари": elif base_command == "!пари":