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/db/matches.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'planetwars-server/src/db/matches.rs') diff --git a/planetwars-server/src/db/matches.rs b/planetwars-server/src/db/matches.rs index 43e93a3..c86f332 100644 --- a/planetwars-server/src/db/matches.rs +++ b/planetwars-server/src/db/matches.rs @@ -177,6 +177,7 @@ pub fn list_bot_matches( bot_id: i32, opponent_id: Option, outcome: Option, + had_errors: Option, amount: i64, before: Option, after: Option, @@ -184,8 +185,9 @@ pub fn list_bot_matches( ) -> QueryResult> { let lbm = ListBotMatches { bot_id, - opponent_id, outcome, + had_errors, + opponent_id, before, after, amount, -- cgit v1.2.3