aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/db/matches.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-10-14 14:06:22 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-10-14 14:09:32 +0200
commitb51b7a331ddfd93675e93d88cf267494b9c1b083 (patch)
tree9020aa8c536346285c1f429967e916f738c9e27c /planetwars-server/src/db/matches.rs
parent353ecd4c165042234e9f976b158bc970517940f5 (diff)
downloadplanetwars.dev-b51b7a331ddfd93675e93d88cf267494b9c1b083.tar.xz
planetwars.dev-b51b7a331ddfd93675e93d88cf267494b9c1b083.zip
allow filtering for had_errors
Diffstat (limited to 'planetwars-server/src/db/matches.rs')
-rw-r--r--planetwars-server/src/db/matches.rs4
1 files changed, 3 insertions, 1 deletions
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<i32>,
outcome: Option<BotMatchOutcome>,
+ had_errors: Option<bool>,
amount: i64,
before: Option<NaiveDateTime>,
after: Option<NaiveDateTime>,
@@ -184,8 +185,9 @@ pub fn list_bot_matches(
) -> QueryResult<Vec<FullMatchData>> {
let lbm = ListBotMatches {
bot_id,
- opponent_id,
outcome,
+ had_errors,
+ opponent_id,
before,
after,
amount,