diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-10-14 14:06:22 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-10-14 14:09:32 +0200 |
commit | b51b7a331ddfd93675e93d88cf267494b9c1b083 (patch) | |
tree | 9020aa8c536346285c1f429967e916f738c9e27c /planetwars-server/src/routes/matches.rs | |
parent | 353ecd4c165042234e9f976b158bc970517940f5 (diff) | |
download | planetwars.dev-b51b7a331ddfd93675e93d88cf267494b9c1b083.tar.xz planetwars.dev-b51b7a331ddfd93675e93d88cf267494b9c1b083.zip |
allow filtering for had_errors
Diffstat (limited to 'planetwars-server/src/routes/matches.rs')
-rw-r--r-- | planetwars-server/src/routes/matches.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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<String>, opponent: Option<String>, + had_errors: Option<bool>, outcome: Option<BotMatchOutcome>, } @@ -85,6 +86,7 @@ pub async fn list_recent_matches( bot.id, opponent_id, params.outcome, + params.had_errors, count, params.before, params.after, |