names fix

This commit is contained in:
2025-11-29 14:45:32 +03:00
parent 5727c7a60c
commit b20e040fae
3 changed files with 3 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ func TestSendTable(t *testing.T) {
{"Слива Абрикосы Абрикосы", "100", "10", "0.5"},
}
msg := notify.BuildTelegramHTMLTable(rows)
msg := notify.BuildTelegramTable(rows)
conf := loadConfig(t)
bot, err := notify.NewTelegram(conf.Token, true)

View File

@@ -41,7 +41,7 @@ func padLeftVisual(s string, width int) string {
}
// BuildTelegramBoxTable строит ASCII-таблицу с рамками для Telegram HTML <pre>
func BuildTelegramHTMLTable(rows [][]string) string {
func BuildTelegramTable(rows [][]string) string {
if len(rows) == 0 {
return ""
}

View File

@@ -15,6 +15,6 @@ func TestCreateTable(t *testing.T) {
{"Киви", "+200", "1", "-1.2"},
}
msg := notify.BuildTelegramHTMLTable(rows)
msg := notify.BuildTelegramTable(rows)
log.Println(msg)
}