Skip to content

Commit

Permalink
fix: remove levelid field from the generated playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
motzel committed Mar 18, 2024
1 parent 608d696 commit 1bf7797
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 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
@@ -1,6 +1,6 @@
[package]
name = "bl-bot"
version = "0.17.18"
version = "0.17.19"
description = "Beat Leader Discord Bot"
readme = "README.md"
repository = "https://github.com/motzel/bl-bot"
Expand Down
7 changes: 0 additions & 7 deletions src/discord/bot/beatleader/clan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ pub(crate) struct PlaylistItem {
#[serde(default)]
level_author_name: String,
#[serde(default)]
levelid: String,
hash: String,
difficulties: Vec<PlaylistDifficulty>,
}
Expand Down Expand Up @@ -712,12 +711,6 @@ impl Playlist {
.map(|score| PlaylistItem {
song_name: score.leaderboard.song.name,
level_author_name: score.leaderboard.song.author,
levelid: format!(
"custom_level_{}_{}_{}",
&score.leaderboard.song.hash,
&score.leaderboard.difficulty.mode_name,
&score.leaderboard.difficulty.difficulty_name
),
hash: score.leaderboard.song.hash,
difficulties: vec![PlaylistDifficulty {
characteristic: score.leaderboard.difficulty.mode_name,
Expand Down

0 comments on commit 1bf7797

Please sign in to comment.