Fixed pagination missing.

main
BurnyLlama 2023-04-16 00:24:04 +02:00
parent 504c580dfd
commit ec828c8465
1 changed files with 6 additions and 2 deletions

View File

@ -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
",