mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-16 07:18:54 +00:00
Fix wrong osu! gamemode in storage (#20)
This commit is contained in:
parent
5fc818b55e
commit
c5b304e3f6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue