Skip to content

Commit

Permalink
fix: query result testcase name
Browse files Browse the repository at this point in the history
  • Loading branch information
yhzhu99 committed Mar 13, 2021
1 parent 58d230c commit cb72afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func QueryResult(sid int) (result string) {
global.DB.Where("sid = ?", sid).Find(&q)
result = "您每一次实验的评测情况如下: (AC: 1, TLE: -1, WA: -2, CE: -3)\n"
for _, v := range q {
result += "Num = " + strconv.Itoa(v.Num) + ", 评测点 = " + v.Test[0:len(v.Test)-5] + ", Grade = " + strconv.Itoa(v.Result) + " (" + v.Tag + ")\n"
result += "Num = " + strconv.Itoa(v.Num) + ", 评测点 = " + v.Test + ", Grade = " + strconv.Itoa(v.Result) + " (" + v.Tag + ")\n"
}
return result
}

0 comments on commit cb72afe

Please sign in to comment.