From 87f0efa927aeaefe08c1f379560c60af9f391b09 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Wed, 14 Feb 2024 02:35:11 +0100 Subject: [PATCH] Include failing scores --- youmubot-osu/src/models/rosu.rs | 2 +- youmubot-osu/src/request.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/youmubot-osu/src/models/rosu.rs b/youmubot-osu/src/models/rosu.rs index a90d7f7..4c84bbe 100644 --- a/youmubot-osu/src/models/rosu.rs +++ b/youmubot-osu/src/models/rosu.rs @@ -147,7 +147,7 @@ impl From for Score { score: Some(s.legacy_score as u64).filter(|v| *v > 0), normalized_score: s.score, pp: s.pp.map(|v| v as f64), - rank: s.grade.into(), + rank: if s.passed { s.grade.into() } else { Rank::F }, mods: s .mods .iter() diff --git a/youmubot-osu/src/request.rs b/youmubot-osu/src/request.rs index bd47ee4..b694674 100644 --- a/youmubot-osu/src/request.rs +++ b/youmubot-osu/src/request.rs @@ -328,7 +328,7 @@ pub mod builders { let scores = handle_not_found({ let mut r = client.rosu.user_scores(self.user); r = match self.score_type { - UserScoreType::Recent => r.recent(), + UserScoreType::Recent => r.recent().include_fails(true), UserScoreType::Best => r.best(), }; if let Some(mode) = self.mode {