Show albums on home screen

This commit is contained in:
Elias Projahn 2024-06-05 13:26:47 +02:00
parent 3ab0332475
commit 38613c0063
7 changed files with 172 additions and 3 deletions

View file

@ -9,7 +9,7 @@ use diesel::prelude::*;
use super::{schema::*, tables, TranslatedString};
// Re-exports for tables that don't need additional information.
pub use tables::{Instrument, Person, Role};
pub use tables::{Album, Instrument, Person, Role};
#[derive(Clone, Debug)]
pub struct Work {
@ -371,3 +371,10 @@ impl Track {
})
}
}
impl Eq for Album {}
impl PartialEq for Album {
fn eq(&self, other: &Self) -> bool {
self.album_id == other.album_id
}
}