From ab0a7928b49b3a2b45f40c5bead5c33e6e3df83a Mon Sep 17 00:00:00 2001 From: shoopea Date: Sat, 1 Feb 2020 19:17:17 +0800 Subject: [PATCH] fix output --- job.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/job.go b/job.go index 0ee23c7..a480b98 100644 --- a/job.go +++ b/job.go @@ -1243,9 +1243,9 @@ func jobVaultItemStatus(j Job) { chat, err := bot.ChatByID(strconv.FormatInt(userId, 10)) logOnError(err, "jobVaultItemStatus : ChatByID") if err == nil { - out = fmt.Sprintf("%s%-32s |%6d |%6d |%6d\n", out, chat.Username, depositList[i], withdrawList[i], depositList[i]-withdrawList[i]) + out = fmt.Sprintf("%s@%-31s |%6d |%6d |%6d\n", out, chat.Username, depositList[i], withdrawList[i], depositList[i]-withdrawList[i]) } else { - out = fmt.Sprintf("%s%-32d |%6d |%6d |%6d\n", out, userId, depositList[i], withdrawList[i], depositList[i]-withdrawList[i]) + out = fmt.Sprintf("%s#%-31d |%6d |%6d |%6d\n", out, userId, depositList[i], withdrawList[i], depositList[i]-withdrawList[i]) } } out = fmt.Sprintf("%s", out) @@ -1276,9 +1276,9 @@ func jobVaultItemStatus(j Job) { chat, err := bot.ChatByID(strconv.FormatInt(userId, 10)) logOnError(err, "jobVaultItemStatus : ChatByID") if err == nil { - out = fmt.Sprintf("%s%-32s |%6d |%6d |%6d\n", out, chat.Username, depositList[i], withdrawList[i], depositList[i]-withdrawList[i]) + out = fmt.Sprintf("%s@%-31s |%6d |%6d |%6d\n", out, chat.Username, depositList[i], withdrawList[i], depositList[i]-withdrawList[i]) } else { - out = fmt.Sprintf("%s%-32d |%6d |%6d |%6d\n", out, userId, depositList[i], withdrawList[i], depositList[i]-withdrawList[i]) + out = fmt.Sprintf("%s#%-31d |%6d |%6d |%6d\n", out, userId, depositList[i], withdrawList[i], depositList[i]-withdrawList[i]) } } out = fmt.Sprintf("%s", out)