feat(frontend): add ShowSummary, SeasonSummary types + library shows/seasons API methods
This commit is contained in:
@@ -6,6 +6,7 @@ use sqlx::SqlitePool;
|
||||
use domain::{
|
||||
ContentType, DomainError, DomainResult, ILibraryRepository,
|
||||
LibraryCollection, LibraryItem, LibrarySearchFilter, LibrarySyncLogEntry, LibrarySyncResult,
|
||||
SeasonSummary, ShowSummary,
|
||||
};
|
||||
|
||||
pub struct SqliteLibraryRepository {
|
||||
@@ -72,6 +73,9 @@ impl ILibraryRepository for SqliteLibraryRepository {
|
||||
.collect();
|
||||
conditions.push(format!("({})", genre_conditions.join(" OR ")));
|
||||
}
|
||||
if let Some(sn) = filter.season_number {
|
||||
conditions.push(format!("season_number = {}", sn));
|
||||
}
|
||||
|
||||
let where_clause = if conditions.is_empty() {
|
||||
String::new()
|
||||
|
||||
Reference in New Issue
Block a user