Fix wrong osu! gamemode in storage (#20)

This commit is contained in:
茜・バタフライ 2020-05-31 04:05:19 +00:00 committed by Natsu Kagami
parent 5fc818b55e
commit c5b304e3f6

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,