diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-25 22:26:58 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-25 22:26:58 +0200 |
commit | c30222cf9a5f173f30e5b6193714401dc0e3569f (patch) | |
tree | 457a3461a3e2203a8aefaf0b3432a97c22e84101 /planetwars-server/src/routes | |
parent | 67276bd0bbac15fe087edafd59d164c686509b35 (diff) | |
download | planetwars.dev-c30222cf9a5f173f30e5b6193714401dc0e3569f.tar.xz planetwars.dev-c30222cf9a5f173f30e5b6193714401dc0e3569f.zip |
limit amount of matches used by ranker
Diffstat (limited to 'planetwars-server/src/routes')
-rw-r--r-- | planetwars-server/src/routes/matches.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/planetwars-server/src/routes/matches.rs b/planetwars-server/src/routes/matches.rs index a980daa..58ca478 100644 --- a/planetwars-server/src/routes/matches.rs +++ b/planetwars-server/src/routes/matches.rs @@ -24,7 +24,7 @@ pub struct ApiMatchPlayer { } pub async fn list_matches(conn: DatabaseConnection) -> Result<Json<Vec<ApiMatch>>, StatusCode> { - matches::list_matches(&conn) + matches::list_matches(100, &conn) .map_err(|_| StatusCode::BAD_REQUEST) .map(|matches| Json(matches.into_iter().map(match_data_to_api).collect())) } |