test
This commit is contained in:
parent
9c82496757
commit
0bb0fd38b7
6
job.go
6
job.go
@ -1588,12 +1588,12 @@ func jobGWithdraw(j Job) {
|
||||
ref := hex.EncodeToString(out)
|
||||
|
||||
user := bot.ChatByID(fmt.Sprintf("%d", p.UserID64))
|
||||
stock := make(string, 0)
|
||||
stock := new(string)
|
||||
for _, i := range p.Items {
|
||||
if i.Available > i.Required {
|
||||
stock = fmt.Sprintf("\n%d x %s", i.Required, i.Name)
|
||||
stock = fmt.Sprintf("%s\n%d x %s", stock, i.Required, i.Name)
|
||||
} else {
|
||||
stock = fmt.Sprintf("\n%d x %s", i.Available, i.Name)
|
||||
stock = fmt.Sprintf("%s\n%d x %s", stock, i.Available, i.Name)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user