Compare commits
No commits in common. "535087fae14231882d1f5f4335ef1b0a9ea41e0b" and "5d7f89cff07a330b0929fe9bbc3990681f0fd122" have entirely different histories.
535087fae1
...
5d7f89cff0
|
@ -144,7 +144,6 @@ def process(message, path):
|
||||||
reference_time = int(current_time.strftime("%s")) - current_seconds
|
reference_time = int(current_time.strftime("%s")) - current_seconds
|
||||||
|
|
||||||
if base_command == "!пара":
|
if base_command == "!пара":
|
||||||
'''
|
|
||||||
upcoming_lessons = [timestamp for timestamp in schedule if timestamp > current_seconds - 5400]
|
upcoming_lessons = [timestamp for timestamp in schedule if timestamp > current_seconds - 5400]
|
||||||
|
|
||||||
if len(upcoming_lessons) > 0:
|
if len(upcoming_lessons) > 0:
|
||||||
|
@ -154,9 +153,6 @@ def process(message, path):
|
||||||
|
|
||||||
return "Актуальна пара: " + get_lesson_description(schedule, reference_time, closest_lesson_time, current_day,
|
return "Актуальна пара: " + get_lesson_description(schedule, reference_time, closest_lesson_time, current_day,
|
||||||
current_week)
|
current_week)
|
||||||
'''
|
|
||||||
|
|
||||||
return "Ви маєте законне право відпочити, пари почнуться не скоро"
|
|
||||||
|
|
||||||
elif base_command == "!пари":
|
elif base_command == "!пари":
|
||||||
base_day = current_week * 7 + current_day
|
base_day = current_week * 7 + current_day
|
||||||
|
|
|
@ -1,32 +1,26 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"9:00": {"name": "Комп'ютерна логіка (екзамен)", "teacher": "Жабін В. І.", "link": "https://bbb.comsys.kpi.ua/b/val-2vb-o7w-y5y АБО https://bbb.ugrid.org/b/val-osi-lup-ou8"}
|
"12:20": {"name": "Культура мовлення та ділове мовлення", "teacher": "Кушлаба М. П.", "link": "https://bbb.comsys.kpi.ua/b/myk-0iw-red-p01"}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"10:25": {"name": "Вища математика (лекція) (інше посилання)", "teacher": "Стаматієва В.", "link": "https://us04web.zoom.us/j/2313886209?pwd=dnZHanV3cU9LUXJBVWYyYVArUFg5dz09"},
|
|
||||||
"12:20": {"name": "Фізика (лекція)", "teacher": "Русаков В. Ф.", "link": "http://139.162.162.130:12015/", "container_id": "1"}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"10:25": {"name": "Фізика (практика)", "teacher": "Русаков В. Ф.", "link": "http://139.162.162.130:12015/", "container_id": "1"}
|
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
"16:00": {"name": "Вища математика (лекція)", "teacher": "Ординська З. П.", "link": "https://us04web.zoom.us/j/2684350438?pwd=kiOi3BrgbJHeYvkrx7qaSxa08J8m8O.1"}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"12:20": {"name": "Фізика (лекція)", "teacher": "Русаков В. Ф.", "link": "http://139.162.162.130:12015/", "container_id": "1"}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"10:25": {"name": "Фізика (практика)", "teacher": "Русаков В. Ф.", "link": "http://139.162.162.130:12015/", "container_id": "1"}
|
|
||||||
},
|
},
|
||||||
{},
|
{},
|
||||||
{}
|
{}
|
||||||
|
|
Loading…
Reference in New Issue