This commit is contained in:
Administrator 2022-10-30 20:29:23 +03:00
parent 03f1416d6e
commit 77f2ee72df
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ def process():
ans += f"🏢 {lesson['building']}, {lesson['auditorium']}\n"
ans += f"🕑 {lesson['begin'].strftime('%H:%M')} - {lesson['end'].strftime('%H:%M')}\n"
ans += f"🧑‍🏫 {(lesson['lecturer'] or 'Неизвестно')}\n"
if lesson['link']:
if lesson.get('link', None):
ans += f"🔗 {lesson['link']}"
try:
bot.send_message(

View File

@ -78,7 +78,7 @@ class RUZ:
ans += f"🏢 {lesson['building']}, {lesson['auditorium']}\n"
ans += f"🕑 {lesson['begin'].strftime('%H:%M')} - {lesson['end'].strftime('%H:%M')}\n"
ans += f"👨‍🏫 {(lesson['lecturer'] or 'Неизвестно')}\n"
if lesson['link']:
if lesson.get('link', None):
ans += f"🔗 {lesson['link']}\n"
ans += "\n"
return ans