mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-10 04:30:29 +00:00
osu: fix check command mods filters
This commit is contained in:
parent
7399008414
commit
c148dca438
1 changed files with 1 additions and 1 deletions
|
@ -1044,7 +1044,7 @@ pub(crate) async fn do_check(
|
|||
osu_client
|
||||
.scores(b.beatmap_id, |f| f.user(UserID::ID(user.id)).mode(m))
|
||||
.map_ok(move |mut v| {
|
||||
v.retain(|s| mods.as_ref().is_none_or(|m| m.contains(&s.mods)));
|
||||
v.retain(|s| mods.as_ref().is_none_or(|m| s.mods.contains(&m)));
|
||||
v
|
||||
})
|
||||
.await
|
||||
|
|
Loading…
Add table
Reference in a new issue