fix
This commit is contained in:
parent
179c2eaf6b
commit
d189be8e44
|
@ -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 ""
|
||||
}
|
||||
|
|
|
@ -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" +
|
||||
|
|
Loading…
Reference in New Issue