Skip to content

Commit

Permalink
update akatsuki-pp (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsunyoku authored Oct 24, 2024
1 parent 1ae50d6 commit 041451c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ bcrypt = "0.13.0"
uuid = { version = "1.2.1", features = ["v4"] }
futures = "0.3.17"
strsim = "0.10.0"
akatsuki-pp-rs = { package = "akatsuki-pp", git = "https://github.com/osuAkatsuki/akatsuki-pp-rs", rev = "a9b4aa4da033e1d72b96e35fd8898e32a23d2002" }
akatsuki-pp-rs = { package = "akatsuki-pp", git = "https://github.com/osuAkatsuki/akatsuki-pp-rs", rev = "ca7e57d10faab560448a0c6b70c337965675757c" }
reqwest = "0.11"
async-trait = "0.1.62"
structured-logger = "1.0.3"
Expand Down
2 changes: 1 addition & 1 deletion src/api/routes/calculate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async fn calculate_relax_pp(
usecases::beatmaps::fetch_beatmap_osu_file(request.beatmap_id, context).await?;
let beatmap = Beatmap::from_bytes(&beatmap_bytes)?;

let mut calculate = akatsuki_pp_rs::osu_2019::OsuPP::new(&beatmap)
let mut calculate = akatsuki_pp_rs::osu_2019::OsuPP::from_map(&beatmap)
.mods(request.mods as u32)
.combo(request.max_combo as u32);

Expand Down
2 changes: 1 addition & 1 deletion src/deploy/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async fn calculate_special_pp(
usecases::beatmaps::fetch_beatmap_osu_file(request.beatmap_id, context.clone()).await?;
let beatmap = Beatmap::from_bytes(&beatmap_bytes)?;

let result = akatsuki_pp_rs::osu_2019::OsuPP::new(&beatmap)
let result = akatsuki_pp_rs::osu_2019::OsuPP::from_map(&beatmap)
.mods(request.mods as u32)
.combo(request.max_combo as u32)
.misses(request.miss_count as u32)
Expand Down

0 comments on commit 041451c

Please sign in to comment.