mirror of
https://github.com/johrpan/musicus.git
synced 2025-10-29 05:07:23 +01:00
Show albums on home screen
This commit is contained in:
parent
3ab0332475
commit
38613c0063
7 changed files with 172 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue