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" +