From d189be8e44e5ccd7483864a320473a75dca72912 Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Fri, 10 Feb 2023 15:43:13 +0700 Subject: [PATCH] fix --- date/date.go | 7 ------- messages/messages.go | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/date/date.go b/date/date.go index 634193b..23ce2e6 100644 --- a/date/date.go +++ b/date/date.go @@ -14,25 +14,18 @@ func GetTranslatedWeekday(date time.Time) string { switch date.Weekday() { case time.Monday: return "Понедельник" - case time.Tuesday: return "Вторник" - case time.Wednesday: return "Среда" - case time.Thursday: return "Четверг" - case time.Friday: return "Пятница" - case time.Saturday: return "Суббота" - case time.Sunday: return "Воскресенье" - default: return "" } diff --git a/messages/messages.go b/messages/messages.go index 337e6df..957b0ad 100644 --- a/messages/messages.go +++ b/messages/messages.go @@ -70,8 +70,7 @@ func LessonsMessage(schedule []parser.Lesson, prefix, emptyText string) string { l.Name = strings.ReplaceAll(l.Name, "()", "") l.Name = strings.ReplaceAll(l.Name, l.TimeStart.Format("15:04"), "") l.Name = strings.TrimSpace(l.Name) - s += fmt.Sprintf("%s %s (%s)\n"+ - "%s \n", l.TimeMsg, l.Name, l.Place, l.User) + s += fmt.Sprintf("%s %s (%s)\n%s\n", l.TimeMsg, l.Name, l.Place, l.User) } if prefix != "" { s += "\n" +