From 11bbee098e30e0a17d9ee5efcc69468100906e4e Mon Sep 17 00:00:00 2001 From: Administrator Date: Sat, 29 Oct 2022 11:25:54 +0300 Subject: [PATCH] format --- daemons/notify.py | 3 +-- helpers/ruz.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/daemons/notify.py b/daemons/notify.py index e8846d5..e79a434 100644 --- a/daemons/notify.py +++ b/daemons/notify.py @@ -22,8 +22,7 @@ def process(): ans = f"πŸ“… {lesson['begin'].strftime('%d.%m')}\n" ans += f"πŸ“š {lesson['discipline']}\n" ans += f"🏒 {lesson['building']}, {lesson['auditorium']}\n" - ans += f"πŸ•‘ {lesson['begin'].strftime('%H:%M')}\n" - ans += f"πŸ•— {lesson['end'].strftime('%H:%M')}\n" + ans += f"πŸ•‘ {lesson['begin'].strftime('%H:%M')} - {lesson['end'].strftime('%H:%M')}\n" ans += f"πŸ§‘β€πŸ« {(lesson['lecturer'] or 'НСизвСстно')}\n" if lesson['link']: ans += f"🌏 {lesson['link']}" diff --git a/helpers/ruz.py b/helpers/ruz.py index ba4cb6a..aaa37a3 100644 --- a/helpers/ruz.py +++ b/helpers/ruz.py @@ -76,8 +76,7 @@ class RUZ: ans += f"πŸ“… {date}\n\n" ans += f"πŸ“š {lesson['discipline']}\n" ans += f"🏒 {lesson['building']}, {lesson['auditorium']}\n" - ans += f"πŸ•‘ {lesson['begin'].strftime('%H:%M')}\n" - ans += f"πŸ•— {lesson['end'].strftime('%H:%M')}\n" + ans += f"πŸ•‘ {lesson['begin'].strftime('%H:%M')} - {lesson['end'].strftime('%H:%M')}\n" ans += f"πŸ§‘β€ {(lesson['lecturer'] or 'НСизвСстно')}\n" if lesson['link']: ans += f"🌏 {lesson['link']}"