From c30222cf9a5f173f30e5b6193714401dc0e3569f Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Mon, 25 Jul 2022 22:26:58 +0200 Subject: limit amount of matches used by ranker --- planetwars-server/src/routes/matches.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'planetwars-server/src/routes/matches.rs') 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>, 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())) } -- cgit v1.2.3