typo
This commit is contained in:
parent
f80527d048
commit
e979ed30d7
12
job.go
12
job.go
@ -949,12 +949,12 @@ func jobVaultItemStatus(j Job) {
|
|||||||
err = rows.Scan(&itemID64, &userID64, &deposit, &withdraw)
|
err = rows.Scan(&itemID64, &userID64, &deposit, &withdraw)
|
||||||
logOnError(err, "jobVaultItemStatus : scan next val")
|
logOnError(err, "jobVaultItemStatus : scan next val")
|
||||||
if itemID64 != currentItemID64 {
|
if itemID64 != currentItemID64 {
|
||||||
if currentUserID64 != 0 {
|
if currentItemID64 != 0 {
|
||||||
// display info
|
// display info
|
||||||
out := fmt.Sprintf("<code>%-32s | Depo. | Recv. | Total\n────────────────────────────┼──────┼──────┼──────\n", `User`)
|
out := fmt.Sprintf("<code>%-32s | Depo. | Recv. | Total\n────────────────────────────┼──────┼──────┼──────\n", `User`)
|
||||||
for i, userId := range userList {
|
for i, userId := range userList {
|
||||||
logOnError(err, "jobVaultItemStatus : getObjItem")
|
logOnError(err, "jobVaultItemStatus : getObjItem")
|
||||||
out = fmt.Sprintf("%s%-32d |%6d |%6d |%6d\n", out, userID, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
out = fmt.Sprintf("%s%-32d |%6d |%6d |%6d\n", out, userId, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
||||||
}
|
}
|
||||||
out = fmt.Sprintf("%s</code>", out)
|
out = fmt.Sprintf("%s</code>", out)
|
||||||
|
|
||||||
@ -966,8 +966,8 @@ func jobVaultItemStatus(j Job) {
|
|||||||
}
|
}
|
||||||
TGCmdQueue <- c
|
TGCmdQueue <- c
|
||||||
}
|
}
|
||||||
currentUserID64 = userID64
|
currentItemID64 = itemID64
|
||||||
itemList = nil
|
userList = nil
|
||||||
depositList = nil
|
depositList = nil
|
||||||
withdrawList = nil
|
withdrawList = nil
|
||||||
}
|
}
|
||||||
@ -976,12 +976,12 @@ func jobVaultItemStatus(j Job) {
|
|||||||
depositList = append(depositList, deposit)
|
depositList = append(depositList, deposit)
|
||||||
withdrawList = append(withdrawList, withdraw)
|
withdrawList = append(withdrawList, withdraw)
|
||||||
}
|
}
|
||||||
if currentUserID64 != 0 {
|
if currentItemID64 != 0 {
|
||||||
// display info
|
// display info
|
||||||
out := fmt.Sprintf("<code>%-32s | Depo. | Recv. | Total\n────────────────────────────┼──────┼──────┼──────\n", `User`)
|
out := fmt.Sprintf("<code>%-32s | Depo. | Recv. | Total\n────────────────────────────┼──────┼──────┼──────\n", `User`)
|
||||||
for i, userId := range userList {
|
for i, userId := range userList {
|
||||||
logOnError(err, "jobVaultItemStatus : getObjItem")
|
logOnError(err, "jobVaultItemStatus : getObjItem")
|
||||||
out = fmt.Sprintf("%s%-32d |%6d |%6d |%6d\n", out, userID, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
out = fmt.Sprintf("%s%-32d |%6d |%6d |%6d\n", out, userId, depositList[i], withdrawList[i], depositList[i]-withdrawList[i])
|
||||||
}
|
}
|
||||||
out = fmt.Sprintf("%s</code>", out)
|
out = fmt.Sprintf("%s</code>", out)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user