Removed results string
This commit is contained in:
parent
9ca4c0ce43
commit
038ca04548
2 changed files with 9 additions and 6 deletions
|
|
@ -13,10 +13,12 @@ func (f *Fetcher) GetFormattedCardPrices(name string) (string, error) {
|
|||
}
|
||||
|
||||
func (f *Fetcher) formatCardPrices(name string, prices []scgCardPrice) string {
|
||||
message := fmt.Sprintf("Оригинальное название: %v\n", name)
|
||||
message += fmt.Sprintf("Результатов: %v\n", len(prices))
|
||||
message := fmt.Sprintf("Оригинальное название: %v\n\n", name)
|
||||
for i, v := range prices {
|
||||
message += fmt.Sprintf("%v. %v", i+1, v.format())
|
||||
}
|
||||
if len(prices) == 0 {
|
||||
message += "Цен не найдено\n"
|
||||
}
|
||||
return message
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue