Browse Source

Fix wrong osu! gamemode for leaderboards

master
minhducsun2002 10 months ago
parent
commit
191ca9502e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youmubot-osu/src/discord/announcer.rs

+ 1
- 1
youmubot-osu/src/discord/announcer.rs View File

@@ -25,7 +25,7 @@ pub fn updates(c: Arc<CacheAndHttp>, d: AppData, channels: MemberToChannels) ->
let mut data = OsuSavedUsers::open(&*d.read()).borrow()?.clone();
'user_loop: for (user_id, osu_user) in data.iter_mut() {
let mut pp_values = vec![]; // Store the pp values here...
for mode in &[Mode::Std, Mode::Taiko, Mode::Mania, Mode::Catch] {
for mode in &[Mode::Std, Mode::Taiko, Mode::Catch, Mode::Mania] {
let scores = scan_user(&osu, osu_user, *mode)?;
let user = match osu.user(UserID::ID(osu_user.id), |f| f.mode(*mode)) {
Ok(Some(u)) => u,


Loading…
Cancel
Save