Fix typos
This commit is contained in:
parent
08aa7d278c
commit
084d39f6cf
5 changed files with 12 additions and 12 deletions
|
|
@ -278,7 +278,7 @@ func (t Team) HasSolved(e Exercice) (bool, time.Time) {
|
|||
|
||||
// GetSolvedRank returns the number of teams that solved the challenge before the Team.
|
||||
func (t Team) GetSolvedRank(e Exercice) (nb int64, err error) {
|
||||
if rows, errr := DBQuery("SELECT id_team FROM exercice_solved WHERE id_exercice = ? ORDER BY time ASC", e.Id); err != nil {
|
||||
if rows, errr := DBQuery("SELECT id_team FROM exercice_solved WHERE id_exercice = ? ORDER BY time ASC", e.Id); errr != nil {
|
||||
return nb, errr
|
||||
} else {
|
||||
defer rows.Close()
|
||||
|
|
|
|||
Reference in a new issue