This commit is contained in:
Administrator
2022-10-28 23:40:57 +03:00
parent 2759a693cc
commit 01f113ec4c
4 changed files with 8 additions and 1 deletions

View File

@@ -26,7 +26,8 @@ class Mongo:
("discipline", 1),
("auditorium", 1),
("begin", 1),
("hse_user_id", 1)
("hse_user_id", 1),
("link", 1)
])
self.lessons_collection.create_index([
("hse_user_id", 1),

View File

@@ -78,6 +78,8 @@ class RUZ:
ans += f"🕑 {lesson['begin'].strftime('%H:%M')}\n"
ans += f"🕗 {lesson['end'].strftime('%H:%M')}\n"
ans += f"🧑‍ {(lesson['lecturer'] or 'Неизвестно')}\n"
if lesson['link']:
ans += f"🌏 {lesson['link']}"
ans += "\n"
return ans