From b51b7a331ddfd93675e93d88cf267494b9c1b083 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Fri, 14 Oct 2022 14:06:22 +0200 Subject: allow filtering for had_errors --- planetwars-server/src/routes/matches.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'planetwars-server/src/routes') diff --git a/planetwars-server/src/routes/matches.rs b/planetwars-server/src/routes/matches.rs index 6845e90..24d0b7e 100644 --- a/planetwars-server/src/routes/matches.rs +++ b/planetwars-server/src/routes/matches.rs @@ -44,6 +44,7 @@ pub struct ListRecentMatchesParams { bot: Option, opponent: Option, + had_errors: Option, outcome: Option, } @@ -85,6 +86,7 @@ pub async fn list_recent_matches( bot.id, opponent_id, params.outcome, + params.had_errors, count, params.before, params.after, -- cgit v1.2.3