Commit 7bd0cbc2 authored by Zeng Jie's avatar Zeng Jie Committed by Andrei Mihu
Browse files

Fixed a crash in tournament list cursor calculation. (#250)

parent 09ade675
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -260,7 +260,7 @@ WHERE duration > 0 AND start_time >= $1 AND end_time <= $2 AND category >= $3 AN
		if count <= limit {
			records = append(records, tournament)
		} else if count > limit {
			newCursor.TournamentId = records[limit].Id
			newCursor.TournamentId = records[limit-1].Id
		}
	}