Fixed pagination missing.
This commit is contained in:
parent
504c580dfd
commit
ec828c8465
|
@ -41,8 +41,12 @@ impl Race {
|
|||
ddnet7
|
||||
FROM record_race WHERE name = $1
|
||||
ORDER BY map, time
|
||||
OFFSET (($2 - 1) * $3)
|
||||
FETCH NEXT $3 ROWS ONLY
|
||||
",
|
||||
player
|
||||
player,
|
||||
page,
|
||||
ROWS_PER_PAGE
|
||||
)
|
||||
.fetch_all(&db.pool)
|
||||
.await?;
|
||||
|
@ -87,7 +91,7 @@ impl Race {
|
|||
gameid,
|
||||
ddnet7
|
||||
FROM record_race WHERE map = $1
|
||||
ORDER BY map, time
|
||||
ORDER BY name, time
|
||||
OFFSET (($2 - 1) * $3)
|
||||
FETCH NEXT $3 ROWS ONLY
|
||||
",
|
||||
|
|
Loading…
Reference in New Issue
Block a user