Fixed a bug where recent albums were not correctly sorted

This commit is contained in:
Antoine Gersant 2024-08-09 19:43:30 -07:00
parent 6564e7d078
commit 1bbeee7f39
2 changed files with 2 additions and 2 deletions

View file

@ -285,7 +285,7 @@ impl Builder {
album.year = song.year;
}
album.date_added = album.date_added.min(song.date_added);
album.date_added = album.date_added.max(song.date_added);
if !song.album_artists.is_empty() {
album.artists = song.album_artists.clone();

View file

@ -25,7 +25,7 @@ pub struct Artist {
pub lyricist_credits: HashSet<AlbumKey>,
}
#[derive(Clone, Default, Serialize, Deserialize)]
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
pub struct Album {
pub name: Option<lasso2::Spur>,
pub artwork: Option<PathKey>,